We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3e5ad2 commit 5d87e88Copy full SHA for 5d87e88
source/reference/operators.txt
@@ -489,17 +489,15 @@ Element
489
490
.. code-block:: javascript
491
492
- db.collection.find( { field: { $type: -1 } } );
493
-
494
- .. note::
+ db.collection.find( { field: { $type: -1 } } )
495
496
Query statements cannot use :operator:`$type` to test arrays
497
(i.e. ``4``.) Instead, use the :operator:`$where` operator that
498
resembles the following:
499
500
501
502
- db.collection.find( { field: { $where : "Array.isArray(this.field)" } } );
+ db.collection.find( { field: { $where : "Array.isArray(this.field)" } } )
503
504
See the :issue:`SERVER-1475` for more information about the
505
array type.
0 commit comments