Skip to content

Commit 737535e

Browse files
committed
chore: add a way to configure this
1 parent 38ad114 commit 737535e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

addon/mongocrypt.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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())) {

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ type MongoCryptConstructorOptions = {
6767
cryptSharedLibSearchPaths?: string[];
6868
cryptSharedLibPath?: string;
6969
bypassQueryAnalysis?: boolean;
70+
enableMultipleCollinfo?: boolean;
7071
};
7172

7273
export interface MongoCryptConstructor {

0 commit comments

Comments
 (0)