Details
-
Task
-
Resolution: Done
-
Minor - P4
-
None
-
None
-
None
Description
Here is the example code:
IMongoCollection<T> collection = _database.GetCollection<T>(name);
return Convert.ToInt32(await collection.CountAsync(filter, new CountOptions()
));
With a blank filter there are thousands of documents in the collection. Running collection.count() directly on the console returns the correct number. Running this code against the same exact collection and server returns a max of 1000.