Skip to content

Commit a589904

Browse files
committed
add changes discussed with vk over slack
1 parent 2e28a0f commit a589904

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

source/tutorials/write-update-documents.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ Update One Document
9595
-------------------
9696

9797
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
102104
about ``Mono``, see `Mono <https://projectreactor.io/docs/core/release/reference/#mono>`__ in the Project
103105
Reactor documentation.
104106

@@ -117,10 +119,11 @@ Update Multiple Documents
117119
-------------------------
118120

119121
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
124127
about ``Mono``, see `Mono <https://projectreactor.io/docs/core/release/reference/#mono>`__ in the Project
125128
Reactor documentation.
126129

source/write-data-to-mongo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Write Data to MongoDB
3333
Overview
3434
--------
3535

36+
.. _write-data-reactor-overview:
37+
3638
This page contains copyable code examples of {+driver-short+} methods that you can use to
3739
write data to MongoDB.
3840

0 commit comments

Comments
 (0)