Count maxing out at 1000

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Here is the example code:

      IMongoCollection<T> collection = _database.GetCollection<T>(name);
      return Convert.ToInt32(await collection.CountAsync(filter, new CountOptions()

      { Limit = 99999999}

      ));

      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.

            Assignee:
            Unassigned
            Reporter:
            Morgan Abel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: