Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1642

Documentation uses the deprecated count()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.7.2, 3.8
    • Affects Version/s: 3.7.1
    • Component/s: None
    • Labels:
      None

      For example in tutorial: https://api.mongodb.com/python/3.7.1/tutorial.html#counting

       >>> posts.count()
      3

      or just of those documents that match a specific query:

      >>> posts.find(

      Unknown macro: {"author"}

      ).count()

      2

      Also in API documentation: https://api.mongodb.com/python/3.7.1/api/pymongo/collection.html#pymongo.collection.Collection.insert_one

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            messa Petr Messner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: