Provided by: libmongoc-doc_1.30.2-1_all bug

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.

1.30.2                                            Mar 05, 2025     MONGOC_BULKWRITE_REPLACEONEOPTS_SET_UPSERT(3)