@@ -7,12 +7,12 @@ Quick Start (POJO Examples)
7
7
.. contents:: On this page
8
8
:local:
9
9
:backlinks: none
10
- :depth: 1
10
+ :depth: 2
11
11
:class: singlecol
12
12
13
- This guide follows from the :ref:`Quick Start guide
13
+ This guide is similar to the :ref:`Quick Start guide
14
14
<javars-quickstart>` but uses Plain Old Java Objects, or POJOs, to
15
- model documents.
15
+ model documents instead of the generic ``Document`` class .
16
16
17
17
The code examples in this guide come from the `PojoQuickTour.java
18
18
<{+driver-source-gh+}/blob/master/driver-reactive-streams/src/examples/reactivestreams/tour/PojoQuickTour.java>`__
@@ -197,10 +197,10 @@ filter objects, the driver provides ``Filters`` helper methods.
197
197
.. important::
198
198
199
199
When querying POJOs, you *must* query against the document field name
200
- and not the POJO property name. By default, they are the same but it
200
+ and not the POJO property name. They are the same by default, but it
201
201
is possible to change how POJO property names are mapped.
202
202
203
- Get A Single Person That Matches a Filter
203
+ Get a Single Person That Matches a Filter
204
204
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
205
205
206
206
The following example finds the first ``Person`` in the database that
@@ -248,7 +248,7 @@ Pass the following parameters to the methods:
248
248
the available operators, see :manual:`Update Operators
249
249
</reference/operator/update/>` in the Server manual.
250
250
251
- The update methods return an ``UpdateResult`` type which provides
251
+ The update methods return an ``UpdateResult`` type that provides
252
252
information about the operation, including the number of documents
253
253
modified by the update.
254
254
@@ -258,7 +258,7 @@ Update a Single Person
258
258
To update a single ``Person``, use the ``updateOne()`` method.
259
259
260
260
The following example updates a ``Person`` named ``"Ada Byron"`` by
261
- setting their age to ``23`` and name to ``Ada Lovelace``:
261
+ setting their age to ``23`` and name to ``" Ada Lovelace" ``:
262
262
263
263
.. code-block:: java
264
264
@@ -305,7 +305,7 @@ Pass a filter object to match the document or
305
305
documents to delete. To specify an empty filter, use an empty
306
306
``Document`` object.
307
307
308
- The delete methods return a ``DeleteResult`` type which provides
308
+ The delete methods return a ``DeleteResult`` type that provides
309
309
information about the operation, including the number of documents
310
310
deleted.
311
311
0 commit comments