Skip to content

Commit 1450795

Browse files
committed
Remove limit when counting results.
1 parent b3a52fb commit 1450795

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)