File tree Expand file tree Collapse file tree 4 files changed +6
-163
lines changed Expand file tree Collapse file tree 4 files changed +6
-163
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ match the query filter you provide. For more information about how to
6262specify a query, see our :doc:`Specify a Query
6363</crud/query-document>` guide.
6464
65+ To retrieve a single document, you can append the ``first()`` method to your
66+ ``find()`` operation.
67+
6568Example
6669~~~~~~~
6770
@@ -93,8 +96,9 @@ criteria.
9396Find Example: Full File
9497~~~~~~~~~~~~~~~~~~~~~~~
9598
96- The following code is a complete, standalone file that performs a find one
97- operation and a find many operation.
99+ The following code is a complete, standalone file that performs a find
100+ operation to retrieve multiple douments, and a find operation with the first
101+ method to retrieve a single document.
98102
99103.. include:: /includes/crud/example-intro.rst
100104
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments