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

FindFluent.SizeAsync()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Feature Request
    • Labels:
      None

      Description

      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).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: