diff --git a/src/RestQuery.js b/src/RestQuery.js index 9a4764a9fb..1e0f344ebc 100644 --- a/src/RestQuery.js +++ b/src/RestQuery.js @@ -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;