File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
source/reference/operator/query Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ The following query uses the :query:`$bitsAllClear` operator:
86
86
87
87
.. code-block:: javascript
88
88
89
- db.collection.find( { a: { $bitsAllClear: BinData(0, "ID ==") } } )
89
+ db.collection.find( { a: { $bitsAllClear: BinData(0, "IA ==") } } )
90
90
91
91
The query:
92
92
93
93
- Specifies ``0`` as the first value for :bsontype:`BinData
94
- <data_binary>`, which indicates ``ID ==`` is to be interpreted as
95
- binary. The base-64 value ``ID ==`` in binary is ``00100000``, which
94
+ <data_binary>`, which indicates ``IA ==`` should be interpreted as
95
+ binary. The base-64 value ``IA ==`` in binary is ``00100000``, which
96
96
has ``1`` in position 5.
97
97
98
98
- Uses :query:`$bitsAllClear` to return documents where the ``a`` field
Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ BinData Bitmask
83
83
84
84
The following query uses the :query:`$bitsAllSet` operator to test
85
85
whether field ``a`` has bits set at positions ``4`` and ``5``
86
- (the binary representation of ``BinData(0, "MC ==")`` is ``00110000``).
86
+ (the binary representation of ``BinData(0, "MA ==")`` is ``00110000``).
87
87
88
88
.. code-block:: javascript
89
89
90
- db.collection.find( { a: { $bitsAllSet: BinData(0, "MC ==") } } )
90
+ db.collection.find( { a: { $bitsAllSet: BinData(0, "MA ==") } } )
91
91
92
92
The query matches the following document:
93
93
Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ BinData Bitmask
85
85
~~~~~~~~~~~~~~~
86
86
The following query uses the :query:`$bitsAnyClear` operator to test
87
87
whether field ``a`` has any bits clear at positions ``4`` and ``5``
88
- (the binary representation of ``BinData(0, "MC ==")`` is ``00110000``).
88
+ (the binary representation of ``BinData(0, "MA ==")`` is ``00110000``).
89
89
90
90
.. code-block:: javascript
91
91
92
- db.collection.find( { a: { $bitsAnyClear: BinData(0, "MC ==") } } )
92
+ db.collection.find( { a: { $bitsAnyClear: BinData(0, "MA ==") } } )
93
93
94
94
The query matches the following documents:
95
95
Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ BinData Bitmask
84
84
85
85
The following query uses the :query:`$bitsAnySet` operator to test
86
86
whether field ``a`` has any bits set at positions ``4``, and ``5``
87
- (the binary representation of ``BinData(0, "MC ==")`` is ``00110000``).
87
+ (the binary representation of ``BinData(0, "MA ==")`` is ``00110000``).
88
88
89
89
.. code-block:: javascript
90
90
91
- db.collection.find( { a: { $bitsAnySet: BinData(0, "MC ==") } } )
91
+ db.collection.find( { a: { $bitsAnySet: BinData(0, "MA ==") } } )
92
92
93
93
The query matches the following documents:
94
94
You can’t perform that action at this time.
0 commit comments