We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c802b8 commit 6a8a4eaCopy full SHA for 6a8a4ea
source/fundamentals/connection/tls.txt
@@ -89,12 +89,12 @@ in the following ways:
89
:emphasize-lines: 6
90
91
import { MongoClient } from 'mongodb';
92
- import { * as crypto } from 'crypto';
+ import crypto from 'crypto';
93
94
const client = new MongoClient("mongodb+srv://...", {
95
- secureContext: {
96
- secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT
97
- }
+ secureContext: {
+ secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT
+ }
98
});
99
100
In addition to the ``tls`` client option, the driver provides more
0 commit comments