1MONGOC_BULK_OPERATION_REMOVE_ONE_WMIOTlNHiG_bOOmCPo_TnBSgU(oL3cK)_OPERATION_REMOVE_ONE_WITH_OPTS(3)
2
3
4
6 bool
7 mongoc_bulk_operation_remove_one_with_opts (mongoc_bulk_operation_t *bulk,
8 const bson_t *selector,
9 const bson_t *opts,
10 bson_error_t *error); /* OUT */
11
12 Remove a single document as part of a bulk operation. This only queues
13 the operation. To execute it, call mongoc_bulk_operation_execute().
14
16 • bulk: A mongoc_bulk_operation_t.
17
18 • selector: A bson_t that selects which document to remove.
19
20 • error: An optional location for a bson_error_t or NULL.
21
22 opts may be NULL or a BSON document with additional command options:
23
24 • collation: Configure textual comparisons. See Setting Collation Or‐
25 der, and the MongoDB Manual entry on Collation. Collation requires
26 MongoDB 3.2 or later, otherwise an error is returned.
27
28 • hint: A document or string that specifies the index to use to support
29 the query predicate.
30
32 Operation errors are propagated via mongoc_bulk_operation_execute(),
33 while argument validation errors are reported by the error argument.
34
36 Returns true on success, and false if passed invalid arguments.
37
38 SEE ALSO:
39 mongoc_bulk_operation_remove_one()
40
41 mongoc_bulk_operation_remove_many_with_opts()
42
43
45 MongoDB, Inc
46
48 2017-present, MongoDB, Inc
49
50
51
52
531.25.1 NMoOvNG0O8C,_B2U0L2K3_OPERATION_REMOVE_ONE_WITH_OPTS(3)