File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,9 @@ MongoCrypt::MongoCrypt(const CallbackInfo& info) : ObjectWrap(info) {
577577
578578 mongocrypt_setopt_retry_kms (mongo_crypt (), true );
579579
580- mongocrypt_setopt_enable_multiple_collinfo (mongo_crypt ());
580+ if (options.Get (" enableMultipleCollinfo" ).ToBoolean ()) {
581+ mongocrypt_setopt_enable_multiple_collinfo (mongo_crypt ());
582+ }
581583
582584 // Initialize after all options are set.
583585 if (!mongocrypt_init (mongo_crypt ())) {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ type MongoCryptConstructorOptions = {
6767 cryptSharedLibSearchPaths ?: string [ ] ;
6868 cryptSharedLibPath ?: string ;
6969 bypassQueryAnalysis ?: boolean ;
70+ enableMultipleCollinfo ?: boolean ;
7071} ;
7172
7273export interface MongoCryptConstructor {
You can’t perform that action at this time.
0 commit comments