diff --git a/lib/mongo/collection.rb b/lib/mongo/collection.rb index b0362aa561..d8a291bb3a 100644 --- a/lib/mongo/collection.rb +++ b/lib/mongo/collection.rb @@ -796,7 +796,7 @@ def insert_one(document, opts = {}) db_name: database.name, coll_name: name, write_concern: write_concern, - bypass_document_validation: !opts[:bypass_document_validation], + bypass_document_validation: opts[:bypass_document_validation], options: opts, id_generator: client.options[:id_generator], session: session,