File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import type {
3333 FindOneAndUpdateOptions ,
3434 FindOptions ,
3535} from '@mongosh/service-provider-core' ;
36- import type { MQLPipeline , MQLQuery } from './mql-types' ;
36+ import type { MQLDocument , MQLPipeline , MQLQuery } from './mql-types' ;
3737
3838@shellApiClassDefault
3939export default class Explainable extends ShellApiWithMongoClass {
@@ -183,7 +183,7 @@ export default class Explainable extends ShellApiWithMongoClass {
183183 @returnsPromise
184184 @apiVersions ( [ 1 ] )
185185 async findOneAndDelete (
186- filter : Document ,
186+ filter : MQLQuery ,
187187 options : FindOneAndDeleteOptions = { }
188188 ) : Promise < Document | null > {
189189 this . _emitExplainableApiCall ( 'findOneAndDelete' , { filter, options } ) ;
@@ -196,8 +196,8 @@ export default class Explainable extends ShellApiWithMongoClass {
196196 @returnsPromise
197197 @apiVersions ( [ 1 ] )
198198 async findOneAndReplace (
199- filter : Document ,
200- replacement : Document ,
199+ filter : MQLQuery ,
200+ replacement : MQLDocument ,
201201 options : FindAndModifyShellOptions < FindOneAndReplaceOptions > = { }
202202 ) : Promise < Document > {
203203 this . _emitExplainableApiCall ( 'findOneAndReplace' , { filter, options } ) ;
@@ -210,8 +210,8 @@ export default class Explainable extends ShellApiWithMongoClass {
210210 @returnsPromise
211211 @apiVersions ( [ 1 ] )
212212 async findOneAndUpdate (
213- filter : Document ,
214- update : Document ,
213+ filter : MQLQuery ,
214+ update : MQLDocument ,
215215 options : FindAndModifyShellOptions < FindOneAndUpdateOptions > = { }
216216 ) : Promise < Document > {
217217 this . _emitExplainableApiCall ( 'findOneAndUpdate' , { filter, options } ) ;
You can’t perform that action at this time.
0 commit comments