Merge pull request #867 from ParsePlatform/fosco.count

Remove limit when counting results.
This commit is contained in:
Fosco Marotto
2016-03-06 12:39:39 -08:00

View File

@@ -396,6 +396,7 @@ RestQuery.prototype.runCount = function() {
}
this.findOptions.count = true;
delete this.findOptions.skip;
delete this.findOptions.limit;
return this.config.database.find(
this.className, this.restWhere, this.findOptions).then((c) => {
this.response.count = c;