Skip to content

Commit ae2e11b

Browse files
committed
DOCSP-49699: compound ops page typo fix (#496)
* DOCSP-49699: compound ops page typo fix * more fixes I noticed * small fix * small fix * vale (cherry picked from commit 16332ab)
1 parent f99b90b commit ae2e11b

20 files changed

+38
-61
lines changed

source/fundamentals/crud/compound-operations.txt

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Compound Operations
77
.. meta::
88
:description: Learn how to perform compound operations in MongoDB using Go, combining read and write actions into a single atomic operation to prevent data alteration.
99

10-
.. default-domain:: mongodb
11-
1210
.. contents:: On this page
1311
:local:
1412
:backlinks: none
@@ -78,22 +76,22 @@ the specified query filter and deletes it. The method returns a
7876

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

8583
To find a document and delete it in separate operations, call the
86-
``findOne()`` method followed by the ``deleteOne()`` method.
84+
``FindOne()`` method followed by the ``DeleteOne()`` method.
8785

8886
Modify Behavior
8987
~~~~~~~~~~~~~~~
9088

9189
You can modify the behavior of the ``FindOneAndDelete()`` method by
92-
passing in a ``FineOneAndDeleteOptions``. If you don't specify a
93-
``FineOneAndDeleteOptions``, the driver uses the default values for each
90+
passing in a ``FindOneAndDeleteOptions``. If you don't specify a
91+
``FindOneAndDeleteOptions``, the driver uses the default values for each
9492
option.
9593

96-
The ``FineOneAndDeleteOptions`` type allows you to configure options
94+
The ``FindOneAndDeleteOptions`` type allows you to configure options
9795
with the following methods:
9896

9997
.. list-table::
@@ -163,22 +161,22 @@ document.
163161

164162
The ``FindOneAndUpdate()`` method is an atomic operation, which means it prevents
165163
any other write operations from changing the matching document until it
166-
completes. The ``updateOne()`` method is also an atomic operation, but differs from
167-
``FindOneAndUpdate()`` in that you cannot specify a sort order for the
168-
matched documents.
164+
completes. The ``UpdateOne()`` method is also an atomic operation, but differs from
165+
``FindOneAndUpdate()`` because you cannot return the pre-image of the
166+
updated document when using ``UpdateOne()``.
169167

170168
To find a document and update it in separate operations, call
171-
the ``findOne()`` method followed by the ``updateOne()`` method.
169+
the ``FindOne()`` method followed by the ``UpdateOne()`` method.
172170

173171
Modify Behavior
174172
~~~~~~~~~~~~~~~
175173

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

181-
The ``FineOneAndUpdateOptions`` type allows you to configure options
179+
The ``FindOneAndUpdateOptions`` type allows you to configure options
182180
with the following methods:
183181

184182
.. list-table::
@@ -276,11 +274,11 @@ Modify Behavior
276274
~~~~~~~~~~~~~~~
277275

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

283-
The ``FineOneAndReplaceOptions`` type allows you to configure options
281+
The ``FindOneAndReplaceOptions`` type allows you to configure options
284282
with the following methods:
285283

286284
.. list-table::

source/fundamentals/crud/read-operations/skip.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Skip Returned Results
77
.. meta::
88
:description: Learn how to skip a specified number of results in MongoDB read operations using the setSkip() method or the $skip stage in aggregation pipelines.
99

10-
.. default-domain:: mongodb
11-
1210
.. contents:: On this page
1311
:local:
1412
:backlinks: none

source/fundamentals/crud/read-operations/sort.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Sort Results
77
.. meta::
88
:description: Learn how to sort query results, handle ties, and apply sorting in aggregation pipelines with the MongoDB Go Driver.
99

10-
.. default-domain:: mongodb
11-
1210
.. contents:: On this page
1311
:local:
1412
:backlinks: none
@@ -286,4 +284,4 @@ guide, see the following API Documentation:
286284
- `FindOneAndDelete() <{+api+}/mongo#Collection.FindOneAndDelete>`__
287285
- `FindOneAndUpdate() <{+api+}/mongo#Collection.FindOneAndUpdate>`__
288286
- `FindOneAndReplace() <{+api+}/mongo#Collection.FindOneAndReplace>`__
289-
- `GridFSBucket.Find() <{+api+}/mongo#GridFSBucket.Find>`__
287+
- `GridFSBucket.Find() <{+api+}/mongo#GridFSBucket.Find>`__

source/fundamentals/crud/write-operations/bulk.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Bulk Operations
77
.. meta::
88
:description: Learn to perform bulk write operations with the MongoDB Go Driver, including inserts, updates, replacements, and deletions, using the bulkWrite() method.
99

10-
.. default-domain:: mongodb
11-
1210
.. contents:: On this page
1311
:local:
1412
:backlinks: none
@@ -789,4 +787,5 @@ see the following API documentation:
789787
- `NewClientUpdateOneModel() <{+api+}/mongo#NewClientUpdateOneModel>`__
790788
- `NewClientUpdateManyModel() <{+api+}/mongo#NewClientUpdateManyModel>`__
791789
- `NewClientDeleteOneModel() <{+api+}/mongo#NewClientDeleteOneModel>`__
792-
- `NewClientDeleteManyModel() <{+api+}/mongo#NewClientDeleteManyModel>`__
790+
- `NewClientDeleteManyModel()
791+
<{+api+}/mongo#NewClientDeleteManyModel>`__

source/fundamentals/crud/write-operations/delete.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Delete Documents
55
================
66

77
.. meta::
8-
:description: Learn how to remove documents from collections with the deleteOne() and deleteMany() methods in the MongoDB Go Driver, with examples and options.
8+
:description: Learn how to remove documents from collections with the DeleteOne() and DeleteMany() methods in the MongoDB Go Driver, with examples and options.
99

1010
.. contents:: On this page
1111
:local:

source/fundamentals/crud/write-operations/insert.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Insert a Document
1010

1111
.. meta::
1212
:keywords: code example, write operation, add data
13-
:description: Learn how to insert documents into a MongoDB collection using the insertOne() and insertMany() methods, with options to modify their behavior.
13+
:description: Learn how to insert documents into a MongoDB collection using the InsertOne() and InsertMany() methods, with options to modify their behavior.
1414

1515
.. contents:: On this page
1616
:local:

source/fundamentals/crud/write-operations/modify.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Modify Documents
1010

1111
.. meta::
1212
:keywords: code example, write operation, change data
13-
:description: Learn how to modify MongoDB documents using update and replace operations, including methods like updateOne(), updateMany(), and replaceOne().
13+
:description: Learn how to modify MongoDB documents using update and replace operations, including methods like UpdateOne(), UpdateMany(), and ReplaceOne().
1414

1515
.. contents:: On this page
1616
:local:

source/fundamentals/indexes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ results directly from the index, also called a **covered query**.
8686
- ``name`` ascending, ``age`` descending
8787
- ``name`` descending, ``age`` ascending
8888

89-
Specifying a sort order of ``name`` and :guilabel:`age` ascending or :guilabel:`name` and ``age``
90-
descending requires an in-memory sort.
89+
However, specifying a sort order of both fields in the same
90+
direction requires an in-memory sort.
9191

9292
To learn how to ensure your index covers your query criteria and
9393
projection, see :manual:`Query Coverage

source/fundamentals/stable-api.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
.. meta::
88
:description: Learn how to specify Stable API compatibility in the MongoDB Go Driver to ensure operations align with a defined API version.
99

10-
.. default-domain:: mongodb
11-
1210
.. contents:: On this page
1311
:local:
1412
:backlinks: none
@@ -152,4 +150,4 @@ API Documentation:
152150
- `ServerAPIOptions <{+api+}/mongo/options#ServerAPIOptions>`__
153151
- `ServerApiVersion <{+api+}/mongo/options#ServerAPIVersion>`__
154152
- `SetDeprecationErrors() <{+api+}/mongo/options#ServerAPIOptions.SetDeprecationErrors>`__
155-
- `SetStrict() <{+api+}/mongo/options#ServerAPIOptions.SetStrict>`__
153+
- `SetStrict() <{+api+}/mongo/options#ServerAPIOptions.SetStrict>`__

source/quick-reference.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Quick Reference
77
.. meta::
88
:description: Explore with the MongoDB Go Driver syntax for various commands, including find, insert, update, delete, and more, with links to API documentation and usage examples.
99

10-
.. default-domain:: mongodb
11-
1210
This page shows the driver syntax for several MongoDB commands and links to
1311
their related reference and API documentation.
1412

0 commit comments

Comments
 (0)