Im having trouble with the my cloud code on parse.com. I have a class on parse.com in my data browser called "User". In this class I have seven users. each user has the keys "objectId" and "username". I want to import an array of the "objectId's" in the class "User", but I cannot retrieve them. It keeps saying "User" is not defined in my cloud code log. Here is my code:
Parse.Cloud.define("getUsers", function(request, response) {
var query = new Parse.Query(User);
var names = query.get("username");
console.log("The users are" + names);
});
Im new to javascript so i would really appreciate some help. Thanks!