Skip to content

Commit 617b03b

Browse files
committed
DOCSP-49699: compound ops page typo fix
1 parent ed33b17 commit 617b03b

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::
@@ -160,22 +158,22 @@ document.
160158

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

167165
To find a document and update it in separate operations, call
168-
the ``findOne()`` method followed by the ``updateOne()`` method.
166+
the ``FindOne()`` method followed by the ``UpdateOne()`` method.
169167

170168
Modify Behavior
171169
~~~~~~~~~~~~~~~
172170

173171
You can modify the behavior of the ``FindOneAndUpdate()`` method by
174-
passing in a ``FineOneAndUpdateOptions``. If you don't specify a
175-
``FineOneAndUpdateOptions``, the driver uses the default values for each
172+
passing in a ``FindOneAndUpdateOptions``. If you don't specify a
173+
``FindOneAndUpdateOptions``, the driver uses the default values for each
176174
option.
177175

178-
The ``FineOneAndUpdateOptions`` type allows you to configure options
176+
The ``FindOneAndUpdateOptions`` type allows you to configure options
179177
with the following methods:
180178

181179
.. list-table::
@@ -267,17 +265,21 @@ document.
267265
This method differs from the ``ReplaceOne()`` method.
268266
``FindOneAndReplace()`` performs a find and replace as a single
269267
operation, and eliminates the possibility of someone altering a
270-
document between both operations.
268+
document between both operations. When using ``FindOneAndReplace()``,
269+
you can also set a sort order on matched documents.
270+
271+
To find a document and replace it in separate operations, call
272+
the ``FindOne()`` method followed by the ``ReplaceOne()`` method.
271273

272274
Modify Behavior
273275
~~~~~~~~~~~~~~~
274276

275277
You can modify the behavior of the ``FindOneAndReplace()`` method by
276-
passing in a ``FineOneAndReplaceOptions``. If you don't specify a
277-
``FineOneAndReplaceOptions``, the driver uses the default values for each
278+
passing in a ``FindOneAndReplaceOptions``. If you don't specify a
279+
``FindOneAndReplaceOptions``, the driver uses the default values for each
278280
option.
279281

280-
The ``FineOneAndReplaceOptions`` type allows you to configure options
282+
The ``FindOneAndReplaceOptions`` type allows you to configure options
281283
with the following methods:
282284

283285
.. list-table::

0 commit comments

Comments
 (0)