parse-find-all
v1.0.1
Published
Return all results from a Parse.com query
Downloads
3
Readme
Parse Find All
Simple module enabling unlimited queries that return the entire Parse.com collection (up to 10,000 results).
Usage
var findAll = require('parse-find-all');
var query = new Parse.Query('Person') // Where 'Person' is name of your collection
.equalTo('name', 'John');
findAll(query)
.then(function(results) {
console.log(results.length + ' is potentially more than a thousand!');
});
Note Parse Find All overrides any .limit() calls set on the query object. If you want to set the number of results returned in each network request use
findAll(query, { limit: 500 })
Default limit is 1000 per request, the max allowed by Parse.com. Parse places a hard limit at 10,000 on query results so that is the most that can be returned by findAll