-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
query-modifier.txt
40 lines (26 loc) · 1.01 KB
/
query-modifier.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
===============
Query Modifiers
===============
.. default-domain:: mongodb
In addition to the :doc:`MongoDB Query Operators
</reference/operator>`, there are a number of "meta" operators that
let you modify the output or behavior of a query.
.. include:: /includes/extracts/mongo-shell-deprecated-meta-operator.rst
The driver interfaces may provide :doc:`cursor methods
</reference/method/js-cursor>` that wrap these options. When possible,
use these methods; otherwise, you can add these options using either of
the following syntax:
.. code-block:: javascript
db.collection.find( { <query> } )._addSpecial( <option> )
db.collection.find( { $query: { <query> }, <option> } )
Operators
---------
Modifiers
~~~~~~~~~
.. include:: /includes/extracts/mongo-shell-deprecated-meta-operator.rst
.. include:: /includes/toc/table-operator-meta.rst
.. include:: /includes/toc/operator-meta.rst
Sort Order
~~~~~~~~~~
.. include:: /includes/toc/table-operator-sort-order.rst
.. include:: /includes/toc/operator-sort-order.rst