We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197e237 commit 9d765adCopy full SHA for 9d765ad
source/crud/query/find.txt
@@ -154,6 +154,13 @@ modifying queries:
154
- | Specifies a string to attach to the query. This can help you trace and interpret the
155
operation in the server logs and in profile data.
156
157
+ * - ``first()``
158
+ - | Returns the first document that matches the query or throws a MongoClientException
159
+ if no matching documents exist.
160
+
161
+ * - ``firstOrNull()``
162
+ - | Returns the first document that matches the query or null if no matching documents exist.
163
164
* - ``hint()``
165
- | Specifies the index to use for the query.
166
0 commit comments