Docs Menu
Docs Home
/ / /
C Driver

opts may be NULL or a BSON document with additional command options:

  • validate: Construct a bitwise-or of all desired bson_validate_flags_t. Set to false to skip client-side validation of the provided BSON documents.

  • collation: Configure textual comparisons. See Setting Collation Order, and the MongoDB Manual entry on Collation. Collation requires MongoDB 3.2 or later, otherwise an error is returned.

  • hint: A document or string that specifies the index to use to support the query predicate.

  • upsert: If true, insert a document if none match selector.

Next

MongoDB C Driver