We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2492dd2 commit 421fe6eCopy full SHA for 421fe6e
src/cmap/connect.ts
@@ -41,7 +41,7 @@ function checkSupportedServer(ismaster: Document, options: ConnectionOptions) {
41
ismaster.maxWireVersion >= MIN_SUPPORTED_WIRE_VERSION;
42
const serverVersionLowEnough =
43
ismaster &&
44
- (typeof ismaster.maxWireVersion === 'number' || ismaster.maxWireVersion instanceof Int32) &&
+ (typeof ismaster.minWireVersion === 'number' || ismaster.minWireVersion instanceof Int32) &&
45
ismaster.minWireVersion <= MAX_SUPPORTED_WIRE_VERSION;
46
47
if (serverVersionHighEnough) {
0 commit comments