File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1072,14 +1072,15 @@ export class Collection<TSchema extends Document = Document> {
1072
1072
) : ListSearchIndexesCursor {
1073
1073
options =
1074
1074
typeof indexNameOrOptions === 'object' ? indexNameOrOptions : options == null ? { } : options ;
1075
+ const cleanedOptions = ( ( { readConcern, writeConcern, ...rest } ) => rest ) ( options ) ;
1075
1076
const indexName =
1076
1077
indexNameOrOptions == null
1077
1078
? null
1078
1079
: typeof indexNameOrOptions === 'object'
1079
1080
? null
1080
1081
: indexNameOrOptions ;
1081
1082
1082
- return new ListSearchIndexesCursor ( this as TODO_NODE_3286 , indexName , options ) ;
1083
+ return new ListSearchIndexesCursor ( this as TODO_NODE_3286 , indexName , cleanedOptions ) ;
1083
1084
}
1084
1085
1085
1086
/**
You can’t perform that action at this time.
0 commit comments