Skip to content

Commit 2937e0d

Browse files
committed
fix(NODE-4251): ensure internal clients dont promote
1 parent 62bd091 commit 2937e0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/encrypter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ export class Encrypter {
8383

8484
clonedOptions.minPoolSize = 0;
8585

86+
clonedOptions.promoteValues = false;
87+
clonedOptions.promoteLongs = false;
88+
8689
internalClient = new MongoClient(uri, clonedOptions);
8790
this[kInternalClient] = internalClient;
8891

0 commit comments

Comments
 (0)