From 1450795516dd5948a4770398de642db9bb61ad52 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sun, 6 Mar 2016 03:32:49 -0800 Subject: [PATCH] Remove limit when counting results. --- src/RestQuery.js | 1 + 1 file changed, 1 insertion(+) 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;