
..
   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 `Setting Collation Order <setting_collation_order_>`_, and `the MongoDB Manual entry on Collation <https://www.mongodb.com/docs/manual/reference/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``.
* ``sort``: Specify a sort order when matching documents.
