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

Comment on: "manual/reference/operator/query/bitsAllSet.txt"

    XMLWordPrintableJSON

Details

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

    Description

      There is an error in this section: The example shows 35 but the test explains about 50. The value to use is 50.

      "The following query uses the $bitsAllSet operator to test whether field a has bits set at positions 1, 4, and 5 (the binary representation of the bitmask 50 is 00110010).

      db.collection.find( { a:

      { $bitsAllSet: 35 }

      } )"

      Attachments

        Activity

          People

            timothy.chen Timothy Chen
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 29 weeks, 2 days ago