I created the following cloud function to get all users
Moralis.Cloud.define("getUsers", async (request) => {
const query = new Moralis.Query("User");
const results = await query.find({ useMasterKey: true });
return results;
});
When I call this from the client, I just get this “ParseUser” in the response
async function getUser() {
const users = await Moralis.Cloud.run("getUser");
console.log(users)
}
Why am I not seeing the user data?