mongoc_collection_find_and_modify_with_opts (3) Linux Manual Page
mongoc_collection_find_and_modify_with_opts() – Update and return an object.
Synopsis
bool mongoc_collection_find_and_modify_with_opts (mongoc_collection_t *collection, const bson_t *query, const mongoc_find_and_modify_opts_t *opts, bson_t *reply, bson_error_t *error);
NOTE
- New in mongoc 1.3.0
Parameters
collection- A
mongoc_collection_t\&.
query- A
bson_tcontaining the query to locate target document(s).
optsfind and modify options
reply- An optional location for a
bson_tthat will be initialized with the result orNULL\&.
error- An optional location for a
bson_error_torNULL\&.
Description
Update and return an object.
Errors
Errors are propagated via the error parameter.
Returns
Returns true on success; false on failure.
Example
See mongoc_find_and_modify_opts_t
Colophon
This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
