Last active
June 23, 2021 02:01
-
-
Save gabrielEloy/ca4d909a7782be416f4fced5b4d362db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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