|
SYNOPSISbool mongoc_collection_find_and_modify_with_opts ( PARAMETERS
DESCRIPTIONUpdate and return an object. reply is always initialized, and must be freed with bson_destroy(). If an unacknowledged write concern is set (through mongoc_find_and_modify_opts_append()), the output reply is always an empty document. On success, the output reply contains the full server reply to the findAndModify command. See the MongoDB Manual page for findAndModify for the expected server reply. ERRORSErrors are propagated via the error parameter. RETURNSReturns true if successful. Returns false and sets error if there are invalid arguments or a server or network error. A write concern timeout or write concern error is considered a failure. EXAMPLESee the example code for mongoc_find_and_modify_opts_t. AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|