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
62
62
specify a query, see our :ref:`Specify a Query
63
63
<java-query>` guide.
64
64
65
+ To retrieve a single document, you can append the ``first()`` method to your
66
+ ``find()`` operation.
67
+
65
68
Example
66
69
~~~~~~~
67
70
@@ -93,8 +96,9 @@ criteria.
93
96
Find Example: Full File
94
97
~~~~~~~~~~~~~~~~~~~~~~~
95
98
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.
98
102
99
103
.. include:: /includes/crud/example-intro.rst
100
104
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