File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export interface OpQueryOptions extends CommandOptions {
50
50
secondaryOk ?: boolean ;
51
51
52
52
requestId ?: number ;
53
+ moreToCome ?: boolean ;
53
54
exhaustAllowed ?: boolean ;
54
55
}
55
56
@@ -408,12 +409,21 @@ const OPTS_EXHAUST_ALLOWED = 1 << 16;
408
409
409
410
/** @internal */
410
411
export interface OpMsgOptions {
411
- requestId : number ;
412
- serializeFunctions : boolean ;
413
- ignoreUndefined : boolean ;
414
- checkKeys : boolean ;
415
- maxBsonSize : number ;
416
- exhaustAllowed : boolean ;
412
+ socketTimeoutMS ?: number ;
413
+ session ?: ClientSession ;
414
+ numberToSkip ?: number ;
415
+ numberToReturn ?: number ;
416
+ returnFieldSelector ?: Document ;
417
+ pre32Limit ?: number ;
418
+ serializeFunctions ?: boolean ;
419
+ ignoreUndefined ?: boolean ;
420
+ maxBsonSize ?: number ;
421
+ checkKeys ?: boolean ;
422
+ secondaryOk ?: boolean ;
423
+
424
+ requestId ?: number ;
425
+ moreToCome ?: boolean ;
426
+ exhaustAllowed ?: boolean ;
417
427
readPreference : ReadPreference ;
418
428
}
419
429
@@ -465,7 +475,7 @@ export class OpMsgRequest {
465
475
466
476
// flags
467
477
this . checksumPresent = false ;
468
- this . moreToCome = command . writeConcern ?. w === 0 || false ;
478
+ this . moreToCome = options . moreToCome || command . writeConcern ?. w === 0 || false ;
469
479
this . exhaustAllowed =
470
480
typeof options . exhaustAllowed === 'boolean' ? options . exhaustAllowed : false ;
471
481
}
You can’t perform that action at this time.
0 commit comments