Skip to content

Commit

Permalink
Merge pull request #867 from ParsePlatform/fosco.count
Browse files Browse the repository at this point in the history
Remove limit when counting results.
  • Loading branch information
gfosco committed Mar 6, 2016
2 parents fedeff9 + 1450795 commit 3fb6a60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3fb6a60

Please sign in to comment.