DOKK / manpages / debian 13 / libmongoc-doc / mongoc_bulkwrite_updateoneopts_set_sort.3.en
MONGOC_BULKWRITE_UPDATEONEOPTS_SET_SORT(3) libmongoc MONGOC_BULKWRITE_UPDATEONEOPTS_SET_SORT(3)

void
mongoc_bulkwrite_updateoneopts_set_sort (mongoc_bulkwrite_updateoneopts_t *self, bson_t* sort);


sort specifies a sorting order if the query matches multiple documents. The first document matched by the sort order will be updated. This option is only sent if the caller explicitly provides a value.

MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4