Skip to content

Commit f9cdd4e

Browse files
committed
DOCS-5913 findOne if no match
1 parent d4b1631 commit f9cdd4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/reference/method/db.collection.findOne.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Definition
1414
returns the first document according to the :term:`natural order`
1515
which reflects the order of documents on the disk. In :term:`capped
1616
collections <capped collection>`, natural order is the same as
17-
insertion order.
17+
insertion order. If no document satisfies the query, the method
18+
returns null.
1819

1920
.. include:: /includes/apiargs/method-db.collection.findOne-param.rst
2021

0 commit comments

Comments
 (0)