From f53455796295eaec66a5fa0c772700fa7b317678 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 20 Oct 2023 16:14:45 -0600 Subject: [PATCH] fix broken logic --- lib/mongo/collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,