Skip to content

Commit 5c0e67e

Browse files
committed
DOCS-671 min-max FAQ landing page
1 parent f96f89b commit 5c0e67e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/faq/indexes.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,14 @@ The :operator:`$ne` and :operator:`$nin` operators are not selective.
116116
See :ref:`index-selectivity`. If you need to use these,
117117
it is often best to make sure that an additional, more selective
118118
criterion is part of the query.
119+
120+
.. _faq-index-min-max:
121+
122+
Can I use index keys to constrain query matches?
123+
------------------------------------------------
124+
125+
The :method:`min() <cursor.min()>` and the :method:`max()
126+
<cursor.max()>` methods provide a way to constrain the results of the
127+
:method:`find() <db.collection.find()>` method using index keys.
128+
129+

0 commit comments

Comments
 (0)