You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CDRIVER-3054 Revise docs from mongoc_collection_(remove|insert|update) (#1783)
* recommend `mongoc_collection_remove` as an alternative to `mongoc_collection_delete`
* replace "Superseded by" to avoid suggesting functions are obsolete.
* remove internal comments redundant with public docs.
* simplify `test_update` and test a replacement document can be passed
* add missing `mongoc_init` and `mongoc_cleanup`
Copy file name to clipboardExpand all lines: src/libmongoc/doc/mongoc_collection_remove.rst
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ Parameters
27
27
Description
28
28
-----------
29
29
30
-
Superseded by :symbol:`mongoc_collection_delete_one` and :symbol:`mongoc_collection_delete_many`.
30
+
.. note::
31
+
32
+
To pass additional options, use :symbol:`mongoc_collection_delete_one` or :symbol:`mongoc_collection_delete_many`.
31
33
32
34
This function shall remove documents in the given ``collection`` that match ``selector``. The bson ``selector`` is not validated, simply passed along as appropriate to the server. As such, compatibility and errors should be validated in the appropriate server documentation.
Copy file name to clipboardExpand all lines: src/libmongoc/doc/mongoc_collection_update.rst
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@ Parameters
29
29
Description
30
30
-----------
31
31
32
-
Superseded by :symbol:`mongoc_collection_update_one`, :symbol:`mongoc_collection_update_many`, and :symbol:`mongoc_collection_replace_one`.
32
+
.. note::
33
+
34
+
To pass additional options, use :symbol:`mongoc_collection_update_one`, :symbol:`mongoc_collection_update_many`, or :symbol:`mongoc_collection_replace_one`.
33
35
34
36
This function shall update documents in ``collection`` that match ``selector``.
0 commit comments