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 @@ -60,6 +60,9 @@ match the query filter you provide. For more information about how to
60
60
specify a query, see our :ref:`Specify a Query
61
61
<java-query>` guide.
62
62
63
+ To retrieve a single document, you can append the ``first()`` method to your
64
+ ``find()`` operation.
65
+
63
66
Example
64
67
~~~~~~~
65
68
@@ -91,8 +94,9 @@ criteria.
91
94
Find Example: Full File
92
95
~~~~~~~~~~~~~~~~~~~~~~~
93
96
94
- The following code is a complete, standalone file that performs a find one
95
- operation and a find many operation.
97
+ The following code is a complete, standalone file that performs a find
98
+ operation to retrieve multiple douments, and a find operation with the first
99
+ method to retrieve a single document.
96
100
97
101
.. include:: /includes/crud/example-intro.rst
98
102
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