Documentation uses the deprecated count()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.7.2, 3.8
    • Affects Version/s: 3.7.1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Petr Messner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: