Skip to content

Instantly share code, notes, and snippets.

@gabrielEloy
Last active June 23, 2021 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielEloy/ca4d909a7782be416f4fced5b4d362db to your computer and use it in GitHub Desktop.
Save gabrielEloy/ca4d909a7782be416f4fced5b4d362db to your computer and use it in GitHub Desktop.
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