Albeert Tw
Albeert Tw

Reputation: 65

Parse.com fetch collection limit up to 1000

I'm trying to get all element of a parse Collection with Javascript.

collection.query.limit(1000);

doesn't work for me. query propiety doesn't exist in collection.

Thanks!

Upvotes: 3

Views: 429

Answers (1)

Fosco
Fosco

Reputation: 38526

Per the docs here, it should be the other way around: https://parse.com/docs/js_guide#collections

var query = new Parse.Query("myClass");
query.limit(1000);
var collection = query.collection();

Upvotes: 3

Related Questions