@@ -53,15 +53,15 @@ cursor.min()
53
53
54
54
.. code-block:: javascript
55
55
56
- { "v" : 1, "key" : { " _id" : 1 }, "ns" : "test.products", "name" :"_id_" },
57
- { "v" : 1, "key" : { " item" : 1, "type" : 1 }, "ns" :"test.products", "name" : "item_1_type_1" },
58
- { "v" : 1, "key" : { " item" : 1, "type" : -1 }, "ns" : "test.products", "name" : "item_1_type_-1" }
59
- { "v" : 1, "key" : { " price" : 1 }, "ns" : "test.products", "name" : "price_1" }
60
-
61
- - Using the ordering of ``item_1_type_1 `` index, the :method:`min()
62
- <cursor.min()>` method limits the query to the documents that are
63
- at or above the index key bound of ``item`` equal to ``apple`` and
64
- ``type`` equal to ``jonagold``:
56
+ { "_id" : 1 }
57
+ { "item" : 1, "type" : 1 }
58
+ { "item" : 1, "type" : -1 }
59
+ { "price" : 1 }
60
+
61
+ - Using the ordering of ``{ item: 1, type: 1 } `` index, the
62
+ :method:`min() <cursor.min()>` method limits the query to the
63
+ documents that are at or above the index key bound of ``item``
64
+ equal to ``apple`` and ``type`` equal to ``jonagold``:
65
65
66
66
.. code-block:: javascript
67
67
@@ -85,7 +85,7 @@ cursor.min()
85
85
whether :program:`mongod` would select the ``{ item: 1, type: 1
86
86
}`` index ordering or the ``{ item: 1, type: -1 }`` index ordering.
87
87
88
- - Using the ordering of the index ``price_1 ``, the :method:`min()
88
+ - Using the ordering of the index ``{ price: 1 } ``, the :method:`min()
89
89
<cursor.min()>` method limits the query to the documents that are
90
90
at or above the index key bound of ``price`` equal to ``1.39`` and
91
91
the :method:`max() <cursor.max()>` method limits the query to the
@@ -120,7 +120,7 @@ cursor.min()
120
120
The query will use the index on the ``price`` field, even if
121
121
the index on ``_id`` may be better.
122
122
123
- - The :method:`min() <cursor.min()>` method exist primarily to
123
+ - The :method:`min() <cursor.min()>` method exists primarily to
124
124
support the :program:`mongos` (sharding) process.
125
125
126
126
- If you use :method:`min() <cursor.min()>` method with the
0 commit comments