mongoc_bulkwrite_replaceoneopts_set_upsert(3)

mongoc_bulkwrite_replaceoneopts_set_upsert3

Usage

void
mongoc_bulkwrite_replaceoneopts_set_upsert (mongoc_bulkwrite_replaceoneopts_t *self, bool upsert);

Overview

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

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.