File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ export class FindOperation extends CommandOperation<Document> {
114
114
return await server . command ( this . ns , findCommand , {
115
115
...this . options ,
116
116
...this . bsonOptions ,
117
+ timeout : this . timeout ,
117
118
documentsReturnedIn : 'firstBatch' ,
118
119
session
119
120
} ) ;
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export type RunCommandOptions = {
13
13
session ?: ClientSession ;
14
14
/** The read preference */
15
15
readPreference ?: ReadPreferenceLike ;
16
+ /** @internal */
17
+ timeoutMS ?: number ;
16
18
} & BSONSerializeOptions ;
17
19
18
20
/** @internal */
@@ -31,6 +33,7 @@ export class RunCommandOperation<T = Document> extends AbstractOperation<T> {
31
33
const res : TODO_NODE_3286 = await server . command ( this . ns , this . command , {
32
34
...this . options ,
33
35
readPreference : this . readPreference ,
36
+ timeout : this . timeout ,
34
37
session
35
38
} ) ;
36
39
return res ;
You can’t perform that action at this time.
0 commit comments