.. Generated with build/generate-opts.py DO NOT EDIT THIS FILE ``opts`` may be NULL or a BSON document with additional command options: * ``validate``: Construct a bitwise-or of all desired :symbol:`bson_validate_flags_t `. Set to ``false`` to skip client-side validation of the provided BSON documents. * ``collation``: Configure textual comparisons. See :ref:`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``.