Skip to content

Commit 5d87e88

Browse files
author
Sam Kleinman
committed
minor: edit/style
1 parent e3e5ad2 commit 5d87e88

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/reference/operators.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,17 +489,15 @@ Element
489489

490490
.. code-block:: javascript
491491

492-
db.collection.find( { field: { $type: -1 } } );
493-
494-
.. note::
492+
db.collection.find( { field: { $type: -1 } } )
495493

496494
Query statements cannot use :operator:`$type` to test arrays
497495
(i.e. ``4``.) Instead, use the :operator:`$where` operator that
498496
resembles the following:
499497

500498
.. code-block:: javascript
501499

502-
db.collection.find( { field: { $where : "Array.isArray(this.field)" } } );
500+
db.collection.find( { field: { $where : "Array.isArray(this.field)" } } )
503501

504502
See the :issue:`SERVER-1475` for more information about the
505503
array type.

0 commit comments

Comments
 (0)