table of contents
MONGOC_BULKWRITE_REPLACEONEOPTS_SET_UPSERT(3) | libmongoc | MONGOC_BULKWRITE_REPLACEONEOPTS_SET_UPSERT(3) |
SYNOPSIS¶
void mongoc_bulkwrite_replaceoneopts_set_upsert (mongoc_bulkwrite_replaceoneopts_t *self, bool upsert);
DESCRIPTION¶
If upsert is true, creates a new document if no document matches the query.
The upsert option is not sent if this function is not called. The server's default value is false.
AUTHOR¶
MongoDB, Inc
COPYRIGHT¶
2009-present, MongoDB, Inc.
December 12, 2024 | 1.29.1 |