Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse 1.6.X does not return values for all columns on query.find #42

Closed
sewillia opened this issue Oct 5, 2015 · 3 comments
Closed

Comments

@sewillia
Copy link

sewillia commented Oct 5, 2015

I tried to use Parse.1.6.2 and 1.6.4 today but found the when calling query.find.., objects were returned with only the classname and objectId info. All other columns were absent. Eg.

var Plan = Parse.Object.extend("Plan");

var query = new Parse.Query(Plan);
query.equalTo("user", Parse.User.current());
query.find({
success: function(allPlans) {
console.log(allPlans);
...
},
error: function(err1, err2) {
console.log(err1,err2);
}
});

In the success callback the collection printed to the console only contains objectId and className keys.

Is this a bug with the newer versions of this SDK or am I missing something?

@parse-github-bot
Copy link

Thank you for your feedback. We use the issue tracker here to track valid bugs in our SDK. Your question seems to be more about how to use Parse. Could you check out the following resources?

@andrewimm
Copy link
Contributor

The objects have all of their attributes, they just won't show up on a console.log.

Attributes are available as a map on a non-enumerable value, .attributes. If you do the following, you should see the attributes for each object:

allPlans.forEach(function(plan) {
  console.log(plan.attributes)
});

You'll notice that in versions prior to 1.6, console.log printed out a bunch of noise and information that complicated debugging (such as listing each object as type c). The new response to console.log is designed to be more straightforward.

@sewillia
Copy link
Author

I am more than a little late but thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants