@@ -32,7 +32,7 @@ snippet:
32
32
:end-before: end insertDocs
33
33
34
34
.. include:: /includes/fundamentals/automatic-db-coll-creation.rst
35
-
35
+
36
36
Each document contains a rating for a type of tea, which corresponds to
37
37
the ``type`` and ``rating`` fields.
38
38
@@ -55,7 +55,7 @@ Parameters
55
55
56
56
The ``DeleteOne()`` and ``DeleteMany()`` functions expect you to pass a
57
57
``Context`` type and a ``non-nil`` query filter specifying which
58
- documents to match.
58
+ documents to match.
59
59
60
60
They both optionally take a ``DeleteOptions`` type as a third parameter,
61
61
which represents options you can use to configure the delete operation.
@@ -72,12 +72,12 @@ following functions:
72
72
* - Function
73
73
- Description
74
74
75
- * - ``SetHint()``
76
- - | The index to use to scan for documents to delete.
75
+ * - ``SetHint()``
76
+ - | The index to use to scan for documents to delete.
77
77
| Default: ``nil``
78
78
79
79
* - ``SetCollation()``
80
- - | The type of language collation to use when sorting results.
80
+ - | The type of language collation to use when sorting results.
81
81
| Default: ``nil``
82
82
83
83
Return Value
@@ -92,7 +92,7 @@ Example
92
92
```````
93
93
94
94
The following example performs the following with the ``DeleteMany()``
95
- function:
95
+ function:
96
96
97
97
- Matches and deletes documents where the ``rating`` is greater than ``8``
98
98
- Specifies the function to use the ``_id`` as the index
@@ -144,5 +144,5 @@ guide, see the following API Documentation:
144
144
145
145
- `DeleteOne() <{+api+}/mongo#Collection.DeleteOne>`__
146
146
- `DeleteMany() <{+api+}/mongo#Collection.DeleteMany>`__
147
- - `DeleteOptions <{+api+}/options#DeleteOptions>`__
147
+ - `DeleteOptions <{+api+}/mongo/ options#DeleteOptions>`__
148
148
- `DeleteResult <{+api+}/mongo#DeleteResult>`__
0 commit comments