Skip to content

Commit 9d765ad

Browse files
committed
add table entries
1 parent 197e237 commit 9d765ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/crud/query/find.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ modifying queries:
154154
- | Specifies a string to attach to the query. This can help you trace and interpret the
155155
operation in the server logs and in profile data.
156156

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+
157164
* - ``hint()``
158165
- | Specifies the index to use for the query.
159166

0 commit comments

Comments
 (0)