Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const getEmployees = async () => {
const query = new Parse.Query("Employee");
const res = await query.findAll();
const employees = res.map((employee) => ({ name: employee.get("username") }));
setEmployees(employees);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment