I have write a cloud function to get all the entities in โUserโ Object.
Moralis.Cloud.define("getUsers", async (request) => {
const query = new Moralis.Query("_User", { useMasterKey: true });
return query;
});
User object is not empty but here is the response for the above cloud function. I have used Calling via REST API method to get the response.
Response
{
"result": {
"className": "_User",
"_where": {},
"_include": [],
"_exclude": [],
"_count": false,
"_limit": -1,
"_skip": 0,
"_readPreference": null,
"_includeReadPreference": null,
"_subqueryReadPreference": null,
"_queriesLocalDatastore": false,
"_localDatastorePinName": null,
"_extraOptions": {},
"_xhrRequest": {
"task": null
}
}
}