Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6874

Documented count().readConcern() syntax is not supported

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      DOCS-6486 mentions count() supporting a readConcern() helper in the mongo shell:

      db.collection.count().readConcern(<level>)

      This does not appear to match the implementation, which (as at MongoDB 3.2.0) only supports passing the readConcern to count() as an option, eg:

      db.bacon.count({}, {readConcern: "local"})
      

      Attachments

        Activity

          People

            kyle.suarez@mongodb.com Kyle Suarez
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago