void
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 MONGOC_BULKWRITE_REPLACEONEOPTS_SET_UPSERT(3)
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.
Synopsis
void
mongoc_bulkwrite_replaceoneopts_set_upsert (mongoc_bulkwrite_replaceoneopts_t *self, bool upsert);
