@@ -95,10 +95,12 @@ Update One Document
95
95
-------------------
96
96
97
97
To update a single document in a MongoDB collection, call the ``updateOne()``
98
- method and pass your query filter and update operators. Then, pass the ``updateOne()`` result to the static ``Mono.from()`` method from the
99
- ``Mono Publisher``. The ``Mono Publisher`` is a ``Publisher`` implementation
100
- from the Project Reactor library. In {+java-rs+}, you must use ``Publisher``
101
- implementations to control how data is transmitted in your application. To learn more
98
+ method and pass your query filter and update operators. Then, pass the
99
+ ``updateOne()`` result to the static ``Mono.from()`` method from
100
+ ``Mono``. ``Mono`` is a class from the Project Reactor library. In {+java-rs+},
101
+ the driver methods return cold ``Publisher``s, which means that the
102
+ corresponding operation does not happen unless you subscribe to the returned
103
+ ``publisher``. This guide uses the Project Reactor library to consume them.To learn more
102
104
about ``Mono``, see `Mono <https://projectreactor.io/docs/core/release/reference/#mono>`__ in the Project
103
105
Reactor documentation.
104
106
@@ -117,10 +119,11 @@ Update Multiple Documents
117
119
-------------------------
118
120
119
121
To update multiple documents in a MongoDB collection, call the ``updateMany()``
120
- method and pass your query filter and update operators. Then, pass the ``updateMany()`` result to the static ``Mono.from`` method from the
121
- ``Mono Publisher``. The ``Mono Publisher`` is a ``Publisher`` implementation
122
- from the Project Reactor library. In {+java-rs+}, you must use ``Publisher``
123
- implementations to control how data is transmitted in your application. To learn more
122
+ method and pass your query filter and update operators. Then, pass the ``updateMany()`` result to the static ``Mono.from()`` method from
123
+ ``Mono``. ``Mono`` is a class from the Project Reactor library. In {+java-rs+},
124
+ the driver methods return cold ``Publisher``s, which means that the
125
+ corresponding operation does not happen unless you subscribe to the returned
126
+ ``publisher``. This guide uses the Project Reactor library to consume them.To learn more
124
127
about ``Mono``, see `Mono <https://projectreactor.io/docs/core/release/reference/#mono>`__ in the Project
125
128
Reactor documentation.
126
129
0 commit comments