Skip to content

Commit f715f92

Browse files
committed
DOCSP-49699: compound ops page typo fix
(cherry picked from commit 617b03b)
1 parent 2d49ccf commit f715f92

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

source/fundamentals/crud/compound-operations.txt

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Compound Operations
55
===================
66

7-
.. default-domain:: mongodb
8-
97
.. contents:: On this page
108
:local:
119
:backlinks: none
@@ -75,22 +73,22 @@ the specified query filter and deletes it. The method returns a
7573

7674
The ``FindOneAndDelete()`` method is an atomic operation, which means it prevents
7775
any other write operations from changing the matching document until it
78-
completes. The ``deleteOne()`` method is also an atomic operation, but differs from
76+
completes. The ``DeleteOne()`` method is also an atomic operation, but differs from
7977
``FindOneAndDelete()`` in that you cannot specify a sort order for the
8078
matched documents.
8179

8280
To find a document and delete it in separate operations, call the
83-
``findOne()`` method followed by the ``deleteOne()`` method.
81+
``FindOne()`` method followed by the ``DeleteOne()`` method.
8482

8583
Modify Behavior
8684
~~~~~~~~~~~~~~~
8785

8886
You can modify the behavior of the ``FindOneAndDelete()`` method by
89-
passing in a ``FineOneAndDeleteOptions``. If you don't specify a
90-
``FineOneAndDeleteOptions``, the driver uses the default values for each
87+
passing in a ``FindOneAndDeleteOptions``. If you don't specify a
88+
``FindOneAndDeleteOptions``, the driver uses the default values for each
9189
option.
9290

93-
The ``FineOneAndDeleteOptions`` type allows you to configure options
91+
The ``FindOneAndDeleteOptions`` type allows you to configure options
9492
with the following methods:
9593

9694
.. list-table::
@@ -164,22 +162,22 @@ document.
164162

165163
The ``FindOneAndUpdate()`` method is an atomic operation, which means it prevents
166164
any other write operations from changing the matching document until it
167-
completes. The ``updateOne()`` method is also an atomic operation, but differs from
165+
completes. The ``UpdateOne()`` method is also an atomic operation, but differs from
168166
``FindOneAndUpdate()`` in that you cannot specify a sort order for the
169167
matched documents.
170168

171169
To find a document and update it in separate operations, call
172-
the ``findOne()`` method followed by the ``updateOne()`` method.
170+
the ``FindOne()`` method followed by the ``UpdateOne()`` method.
173171

174172
Modify Behavior
175173
~~~~~~~~~~~~~~~
176174

177175
You can modify the behavior of the ``FindOneAndUpdate()`` method by
178-
passing in a ``FineOneAndUpdateOptions``. If you don't specify a
179-
``FineOneAndUpdateOptions``, the driver uses the default values for each
176+
passing in a ``FindOneAndUpdateOptions``. If you don't specify a
177+
``FindOneAndUpdateOptions``, the driver uses the default values for each
180178
option.
181179

182-
The ``FineOneAndUpdateOptions`` type allows you to configure options
180+
The ``FindOneAndUpdateOptions`` type allows you to configure options
183181
with the following methods:
184182

185183
.. list-table::
@@ -275,17 +273,21 @@ document.
275273
This method differs from the ``ReplaceOne()`` method.
276274
``FindOneAndReplace()`` performs a find and replace as a single
277275
operation, and eliminates the possibility of someone altering a
278-
document between both operations.
276+
document between both operations. When using ``FindOneAndReplace()``,
277+
you can also set a sort order on matched documents.
278+
279+
To find a document and replace it in separate operations, call
280+
the ``FindOne()`` method followed by the ``ReplaceOne()`` method.
279281

280282
Modify Behavior
281283
~~~~~~~~~~~~~~~
282284

283285
You can modify the behavior of the ``FindOneAndReplace()`` method by
284-
passing in a ``FineOneAndReplaceOptions``. If you don't specify a
285-
``FineOneAndReplaceOptions``, the driver uses the default values for each
286+
passing in a ``FindOneAndReplaceOptions``. If you don't specify a
287+
``FindOneAndReplaceOptions``, the driver uses the default values for each
286288
option.
287289

288-
The ``FineOneAndReplaceOptions`` type allows you to configure options
290+
The ``FindOneAndReplaceOptions`` type allows you to configure options
289291
with the following methods:
290292

291293
.. list-table::

0 commit comments

Comments
 (0)