Skip to content

Commit fc85173

Browse files
authored
Docsp 18440 (#44)
* remove visible todos * fix link * link replace to change * link to retrieve guide * update api constant * add ref and link to insert * hide upsert page * remove upsert from toctree * rename ref
1 parent b1e97ea commit fc85173

File tree

16 files changed

+57
-56
lines changed

16 files changed

+57
-56
lines changed

source/fundamentals/crud/write-operations.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Write Operations
66

77
- :doc:`/fundamentals/crud/write-operations/insert`
88
- :doc:`/fundamentals/crud/write-operations/change-a-document`
9-
- :doc:`/fundamentals/crud/write-operations/upsert`
109

1110
..
11+
- :doc:`/fundamentals/crud/write-operations/upsert`
1212
- :doc:`/fundamentals/crud/write-operations/delete`
1313
- :doc:`/fundamentals/crud/write-operations/embedded-arrays`
1414

@@ -17,8 +17,8 @@ Write Operations
1717

1818
/fundamentals/crud/write-operations/insert
1919
/fundamentals/crud/write-operations/change-a-document
20-
/fundamentals/crud/write-operations/upsert
2120

2221
..
22+
/fundamentals/crud/write-operations/upsert
2323
/fundamentals/crud/write-operations/delete
2424
/fundamentals/crud/write-operations/embedded-arrays

source/fundamentals/crud/write-operations/change-a-document.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Change a Document
1010
:depth: 2
1111
:class: singlecol
1212

13+
.. _change_document_golang:
14+
1315
Overview
1416
--------
1517

@@ -207,9 +209,7 @@ successful. The ``UpdateResult`` type contains the following properties:
207209

208210
If multiple documents match the query filter passed to ``ReplaceOne()``,
209211
the method selects and replaces the first matched document. Your replace
210-
operation will fail if no documents match the query filter. See our **<TODO:
211-
link>** upsert guide to learn how to insert a new document if no
212-
documents match the query filter.
212+
operation will fail if no documents match the query filter.
213213

214214
Example
215215
~~~~~~~

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Insert a Document
1010
:depth: 1
1111
:class: singlecol
1212

13+
.. _insert_guide_golang:
14+
1315
Overview
1416
--------
1517

@@ -88,8 +90,8 @@ The output should look like this:
8890
For more information on the types and functions mentioned in this
8991
section, see the following resources:
9092

91-
- `InsertOne() <{+godocs+}/mongo#Collection.InsertOne>`__ API documentation
92-
- `InsertOneResult <{+godocs+}/mongo#InsertOneResult>`__ API documentation
93+
- `InsertOne() <{+api+}/mongo#Collection.InsertOne>`__ API documentation
94+
- `InsertOneResult <{+api+}/mongo#InsertOneResult>`__ API documentation
9395
- Server Manual Entry on :manual:`insertOne() </reference/method/db.collection.insertOne/>`
9496
- Runnable :doc:`Insert a Document Usage Example </usage-examples/insertOne>`
9597

@@ -195,7 +197,7 @@ Your output should look like this:
195197
For more information on the types and functions mentioned in this
196198
section, see the following resources:
197199

198-
- `InsertMany() <{+godocs+}/mongo#Collection.InsertMany>`__ API documentation
199-
- `InsertManyResult <{+godocs+}/mongo#InsertManyResult>`__ API documentation
200+
- `InsertMany() <{+api+}/mongo#Collection.InsertMany>`__ API documentation
201+
- `InsertManyResult <{+api+}/mongo#InsertManyResult>`__ API documentation
200202
- Server Manual Entry on :manual:`insertMany() </reference/method/db.collection.insertMany/>`
201203
- Runnable :doc:`Insert Multiple Documents Example </usage-examples/insertMany>`

source/usage-examples/bulkWrite.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ a Document Usage Example </usage-examples/findOne>`.
4848
Additional Information
4949
----------------------
5050

51-
For more information on performing bulk write operations on a collection
52-
and handling potential errors, see our guide on <TODO: Bulk Write
53-
Fundamentals>.
51+
..
52+
For more information on performing bulk write operations on a collection
53+
and handling potential errors, see our guide on <TODO: Bulk Write
54+
Fundamentals>.
5455

5556
For more information, see our :manual:`Bulk Write Operations
5657
</core/bulk-write-operations/>` page.

source/usage-examples/command.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Example
1313
.. include:: /includes/usage-examples/run-example-tip.rst
1414

1515
The following example retrieves statistics about the
16-
``sample_restaurants`` database:
16+
``sample_restaurants`` database:
1717

1818
.. literalinclude:: /includes/usage-examples/code-snippets/command.go
1919
:start-after: begin runCommand
@@ -49,8 +49,9 @@ that contains the following values:
4949
Additional Information
5050
----------------------
5151

52-
For more information on running a command, see our guide on
53-
<TODO: Run a Command>.
52+
..
53+
For more information on running a command, see our guide on
54+
<TODO: Run a Command>.
5455

5556
API Documentation
5657
~~~~~~~~~~~~~~~~~

source/usage-examples/count.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ After you run the preceding example, you should see the following:
4444
Additional Information
4545
----------------------
4646

47-
For more information on counting documents, see our guide on
48-
<TODO: Counting Documents>.
47+
..
48+
For more information on counting documents, see our guide on
49+
<TODO: Counting Documents>.
4950

5051
API Documentation
5152
~~~~~~~~~~~~~~~~~

source/usage-examples/deleteMany.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Delete Multiple Documents
55
.. default-domain:: mongodb
66

77
You can delete multiple documents in a collection by using the
8-
``DeleteMany()`` method.
8+
``DeleteMany()`` method.
99

1010
Example
1111
-------
1212

1313
.. include:: /includes/usage-examples/run-example-tip.rst
1414

1515
The following example matches documents in the ``movies`` collection
16-
in which the ``runtime`` is greater than 800 minutes, deleting all
16+
in which the ``runtime`` is greater than 800 minutes, deleting all
1717
documents matched:
1818

1919
.. literalinclude:: /includes/usage-examples/code-snippets/deleteMany.go
@@ -23,7 +23,7 @@ documents matched:
2323
:language: go
2424
:dedent:
2525

26-
Click here <TODO> to see a fully runnable example.
26+
`Click here <{+example+}/deleteMany.go>`__ to see a fully runnable example.
2727

2828
Expected Result
2929
---------------
@@ -46,11 +46,7 @@ Multiple Documents Usage Example </usage-examples/find>`.
4646
Additional Information
4747
----------------------
4848

49-
For more information on deleting documents, specifying query filters,
50-
and handling potential errors, see our guide on <TODO:
51-
Deleting a Document>.
52-
5349
API Documentation
5450
~~~~~~~~~~~~~~~~~
5551

56-
`DeleteMany() <https://pkg.go.dev/go.mongodb.org/[email protected]/mongo#Collection.DeleteMany>`__
52+
`DeleteMany() <{+api+}/mongo#Collection.DeleteMany>`__

source/usage-examples/deleteOne.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Delete a Document
55
.. default-domain:: mongodb
66

77
You can delete a document in a collection by using the ``DeleteOne()``
8-
method.
8+
method.
99

1010
Example
1111
-------
@@ -23,7 +23,7 @@ matched:
2323
:language: go
2424
:dedent:
2525

26-
Click here <TODO> to see a fully runnable example.
26+
`Click here <{+example+}/deleteOne.go>`__ to see a fully runnable example.
2727

2828
Expected Result
2929
---------------
@@ -43,9 +43,10 @@ a Document Usage Example </usage-examples/findOne>`.
4343
Additional Information
4444
----------------------
4545

46-
For more information on deleting documents, specifying query filters,
47-
and handling potential errors, see our guide on <TODO:
48-
Deleting a Document>.
46+
..
47+
For more information on deleting documents, specifying query filters,
48+
and handling potential errors, see our guide on <TODO:
49+
Deleting a Document>.
4950

5051
API Documentation
5152
~~~~~~~~~~~~~~~~~

source/usage-examples/find.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Additional Information
4545
----------------------
4646

4747
For more information on specifying query filters and
48-
handling potential errors, see our guide on **<TODO: retrieve data
49-
fundamental page>**.
48+
handling potential errors, see our guide on
49+
:doc:`retrieving data </fundamentals/crud/read-operations/retrieve>`.
5050

5151
For more information on query operators,
5252
see the :manual:`MongoDB query operator reference documentation

source/usage-examples/findOne.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Example
1313
.. include:: /includes/usage-examples/run-example-tip.rst
1414

1515
The following example matches documents in the ``movies`` collection
16-
in which the ``title`` is "The Room", returning the first document
16+
in which the ``title`` is "The Room", returning the first document
1717
matched:
1818

1919
.. literalinclude:: /includes/usage-examples/code-snippets/findOne.go
@@ -45,8 +45,8 @@ Additional Information
4545
----------------------
4646

4747
For more information on specifying query filters and
48-
handling potential errors, see our guide on **<TODO: retrieve data
49-
fundamental page>**.
48+
handling potential errors, see our guide on
49+
:doc:`retrieving data </fundamentals/crud/read-operations/retrieve>`.
5050

5151
For more information on query operators,
5252
see the :manual:`MongoDB query operator reference documentation

0 commit comments

Comments
 (0)