-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.5
-
Component/s: MongoDB 3.2
-
Environment:Mac OS 10.11.2. MongoDB 3.2.6. Node js v 4.4.4
-
Empty show more show less
I have error when trying to count documents in collection
In source collection i two documents
My query:
sourceCollection.find({}).limit(1000).skip(0).count(true, function(err, count)
);
Same issue when i have single document.
Count somehow return result -1 instead of just result.
Here is screen shots of
collection - https://gyazo.com/d3548f2ab1d332d39030751d95065a92
Query and output - https://gyazo.com/dfe6157b8443de016fb97e9b469248d2