Skip to content

Commit ab4fcab

Browse files
committed
DOCS-9188: the $gt operator requires the $
1 parent 657ca78 commit ab4fcab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/core/index-compound.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ as well as both ``item`` and ``stock`` fields:
7979
.. code-block:: javascript
8080

8181
db.products.find( { item: "Banana" } )
82-
db.products.find( { item: "Banana", stock: { gt: 5 } } )
82+
db.products.find( { item: "Banana", stock: { $gt: 5 } } )
8383

8484
For details, see :ref:`compound-index-prefix`.
8585

0 commit comments

Comments
 (0)