File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 8484 "mongodb" : " ^6.14.1" ,
8585 "mongodb-collection-model" : " ^5.25.8" ,
8686 "mongodb-data-service" : " ^22.25.8" ,
87+ "mongodb-mql-engines" : " ^0.0.4" ,
8788 "mongodb-query-parser" : " ^4.3.0" ,
8889 "mongodb-ns" : " ^2.4.2" ,
8990 "numeral" : " ^2.0.6" ,
9091 "react" : " ^17.0.2" ,
9192 "react-redux" : " ^8.1.3" ,
9293 "redux" : " ^4.2.1" ,
9394 "redux-thunk" : " ^2.4.2" ,
94- "semver" : " ^7.6.2" ,
95- "mongodb-mql-engines" : " ^0.0.4"
95+ "semver" : " ^7.6.2"
9696 },
9797 "is_compass_plugin" : true
9898}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import type { IndexesThunkAction } from '.';
1010import type { RootState } from '.' ;
1111import { createRegularIndex } from './regular-indexes' ;
1212import * as mql from 'mongodb-mql-engines' ;
13+ import _parseShellBSON , { ParseMode } from '@mongodb-js/shell-bson-parser' ;
1314
1415export enum ActionTypes {
1516 FieldAdded = 'compass-indexes/create-index/fields/field-added' ,
@@ -417,7 +418,7 @@ export const fetchIndexSuggestions = ({
417418 ) ;
418419
419420 const query = mql . parseQuery (
420- EJSON . parse ( inputQuery , { relaxed : false } ) ,
421+ _parseShellBSON ( inputQuery , { mode : ParseMode . Loose } ) ,
421422 analyzedNamespace
422423 ) ;
423424 const results = await mql . suggestIndex ( [ query ] ) ;
You can’t perform that action at this time.
0 commit comments