Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1272

FindFluent.SizeAsync()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0
    • Component/s: Feature Request
    • Labels:
      None

      I wonder if there are any plans to include a SizeAsync (
      http://docs.mongodb.org/manual/reference/method/cursor.size/#cursor.size)?
      I'm not sure of the wire protocol, but it seems that it might be useful at least to imitate "exists" queries (Limit(-1).SizeAsync() instead of CountAsync() when you are only interested if there is at least one document).

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: