Skip to content

Commit 3fb6a60

Browse files
committed
Merge pull request #867 from ParsePlatform/fosco.count
Remove limit when counting results.
2 parents fedeff9 + 1450795 commit 3fb6a60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RestQuery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ RestQuery.prototype.runCount = function() {
396396
}
397397
this.findOptions.count = true;
398398
delete this.findOptions.skip;
399+
delete this.findOptions.limit;
399400
return this.config.database.find(
400401
this.className, this.restWhere, this.findOptions).then((c) => {
401402
this.response.count = c;

0 commit comments

Comments
 (0)