File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export const MAX_SUPPORTED_SERVER_VERSION = '6.0';
3
3
export const MIN_SUPPORTED_WIRE_VERSION = 6 ;
4
4
export const MAX_SUPPORTED_WIRE_VERSION = 17 ;
5
5
export const MIN_SUPPORTED_QE_WIRE_VERSION = 21 ;
6
+ export const MIN_SUPPORTED_QE_SERVER_VERSION = '7.0' ;
6
7
export const OP_REPLY = 1 ;
7
8
export const OP_UPDATE = 2001 ;
8
9
export const OP_INSERT = 2002 ;
Original file line number Diff line number Diff line change 1
1
import type { Document } from '../bson' ;
2
- import { MIN_SUPPORTED_QE_WIRE_VERSION } from '../cmap/wire_protocol/constants' ;
2
+ import { MIN_SUPPORTED_QE_SERVER_VERSION , MIN_SUPPORTED_QE_WIRE_VERSION } from '../cmap/wire_protocol/constants' ;
3
3
import { Collection } from '../collection' ;
4
4
import type { Db } from '../db' ;
5
5
import { MongoCompatibilityError } from '../error' ;
@@ -135,7 +135,9 @@ export class CreateCollectionOperation extends CommandOperation<Collection> {
135
135
if ( encryptedFields ) {
136
136
// Creating a QE collection required min server of 7.0.0
137
137
if ( server . description . maxWireVersion < MIN_SUPPORTED_QE_WIRE_VERSION ) {
138
- throw new MongoCompatibilityError ( INVALID_QE_VERSION ) ;
138
+ throw new MongoCompatibilityError (
139
+ `${ INVALID_QE_VERSION } The minimum server version required is ${ MIN_SUPPORTED_QE_SERVER_VERSION } `
140
+ ) ;
139
141
}
140
142
// Create auxilliary collections for queryable encryption support.
141
143
const escCollection = encryptedFields . escCollection ?? `enxcol_.${ name } .esc` ;
You can’t perform that action at this time.
0 commit comments