You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To retrieve a single document, you can add the ``first()`` method to your
64
66
``find()`` call. To choose a specific document, you can use the ``sort()``
@@ -104,8 +106,11 @@ Find Example: Full File
104
106
105
107
This example is a complete, standalone file that performs the following actions:
106
108
107
-
- Calls the ``find()`` method to retrieve multiple documents that have a ``runtime`` value less than ``15``, applying a projection and sort to the results
108
-
- Calls the ``find()`` and ``first()`` methods to retrieve a document that has a ``title`` value of ``"The Room"``, applying a projection and sort before returning the first match
109
+
- Calls the ``find()`` method to retrieve 10 documents that has a ``runtime``
110
+
value less than ``15`` minutes, applying a projection and sort to the results
111
+
- Calls the ``find()`` and ``first()`` methods to retrieve the document with the
112
+
highest ``imdb.rating`` that is has a ``runtime`` value less than ``15``
0 commit comments