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
* `mongoc_bulk_operation_delete_one` is removed. Use `mongoc_bulk_operation_remove_one` instead.
74
74
* `mongoc_bulk_operation_get_hint` is removed. Use `mongoc_bulk_operation_get_server_id` instead.
75
75
* `mongoc_bulk_operation_set_hint` is removed. Use `mongoc_bulk_operation_set_server_id` instead.
76
+
* Deprecated `mongoc_apm_command_*_get_server_connection_id` functions are removed. Use `mongoc_apm_command_*_get_server_connection_id_int64` instead.
76
77
* Deprecated index management API has been removed:
77
78
* `mongoc_collection_create_index_with_opts`, `mongoc_collection_create_index`, and `mongoc_collection_ensure_index` are removed. Use `mongoc_collection_create_indexes_with_opts` instead.
78
79
* `mongoc_index_opt_t`, `mongoc_index_opt_geo_t` `mongoc_index_opt_wt_t` are removed. Pass options using `bson_t` to `mongoc_collection_create_indexes_with_opts` instead.
79
80
* `mongoc_collection_find_indexes` is removed. Use `mongoc_collection_find_indexes_with_opts` instead.
80
81
* See [MongoDB documentation](https://www.mongodb.com/docs/languages/c/c-driver/current/indexes/) for working with indexes.
82
+
* `mongoc_collection_find` is removed. Use `mongoc_collection_find_with_opts` instead.
83
+
* `mongoc_collection_insert_bulk` is removed. Use `mongoc_collection_insert_many` instead.
84
+
* `mongoc_collection_create_bulk_operation` is removed. Use `mongoc_collection_create_bulk_operation_with_opts` instead.
85
+
* `mongoc_collection_get_last_error` is removed. To get results from write operations, instead use:
86
+
- `mongoc_collection_update_one`
87
+
- `mongoc_collection_update_many`
88
+
- `mongoc_collection_replace_one`
89
+
- `mongoc_collection_delete_one`
90
+
- `mongoc_collection_delete_many`
91
+
- `mongoc_collection_insert_one`
92
+
- `mongoc_collection_insert_many`
93
+
- `mongoc_bulkwrite_t`
94
+
- `mongoc_bulk_operation_t`
95
+
* `mongoc_collection_stats` is removed. Use the [$collStats aggregation pipeline stage](https://www.mongodb.com/docs/manual/reference/operator/aggregation/collStats/) with `mongoc_collection_aggregate` instead.
96
+
* `mongoc_collection_validate` is removed. Run the [validate](https://www.mongodb.com/docs/manual/reference/command/validate/) command directly with `mongoc_client_read_command_with_opts` instead.
81
97
82
98
### Forwarding headers (`#include <bson.h>` and `#include <mongoc.h>`)
| ``MONGOC_ERROR_SERVER`` | `Error code from server`_. |:ref:`Error API Version 2 <error_api_version>`: Server error from a command. The server error message is in ``message``. |
| ``MONGOC_ERROR_COLLECTION`` | `Error code from server`_. |:ref:`Error API Version 1 <error_api_version>`: Server error from :symbol:`mongoc_collection_insert_one`, :symbol:`mongoc_collection_insert_bulk`, :symbol:`mongoc_collection_update_one`, :symbol:`mongoc_collection_update_many`, :symbol:`mongoc_collection_replace_one`, |
80
+
| ``MONGOC_ERROR_COLLECTION`` | `Error code from server`_. |:ref:`Error API Version 1 <error_api_version>`: Server error from :symbol:`mongoc_collection_insert_one`, :symbol:`mongoc_collection_insert_many`, :symbol:`mongoc_collection_update_one`, :symbol:`mongoc_collection_update_many`, :symbol:`mongoc_collection_replace_one`, |
| ``MONGOC_ERROR_SERVER`` | `Error code from server`_. |:ref:`Error API Version 2 <error_api_version>`: Server error from :symbol:`mongoc_collection_insert_one`, :symbol:`mongoc_collection_insert_bulk`, :symbol:`mongoc_collection_update_one`, :symbol:`mongoc_collection_update_many`, :symbol:`mongoc_collection_replace_one`, |
82
+
| ``MONGOC_ERROR_SERVER`` | `Error code from server`_. |:ref:`Error API Version 2 <error_api_version>`: Server error from :symbol:`mongoc_collection_insert_one`, :symbol:`mongoc_collection_insert_many`, :symbol:`mongoc_collection_update_one`, :symbol:`mongoc_collection_update_many`, :symbol:`mongoc_collection_replace_one`, |
0 commit comments