Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-768

Collection count_documents filter default value

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      I think it would be convenient if the filter field of AsyncIOMotorCollection.count_documents had a default value.

      Example:

      count = some_collection.count_documents() # Instead of `count_documents({})`
      

      P.S. I'm not sure if this scope is the right level for this issue (maybe more of a PyMongo issue?).

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            austinscola@gmail.com Austin Scola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: