From 8243f9953e3a220a917790c23546087dfe9caeb2 Mon Sep 17 00:00:00 2001 From: Aditi Khare Date: Thu, 12 Sep 2024 17:31:59 -0400 Subject: [PATCH] remove moreToCome as an option on the request - only on the reply --- src/cmap/commands.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cmap/commands.ts b/src/cmap/commands.ts index a7554ff881..02f7fa0d7e 100644 --- a/src/cmap/commands.ts +++ b/src/cmap/commands.ts @@ -50,7 +50,6 @@ export interface OpQueryOptions extends CommandOptions { secondaryOk?: boolean; requestId?: number; - moreToCome?: boolean; exhaustAllowed?: boolean; } @@ -412,7 +411,6 @@ export interface OpMsgOptions { ignoreUndefined: boolean; checkKeys: boolean; maxBsonSize: number; - moreToCome: boolean; exhaustAllowed: boolean; readPreference: ReadPreference; } @@ -465,7 +463,7 @@ export class OpMsgRequest { // flags this.checksumPresent = false; - this.moreToCome = options.moreToCome || command.writeConcern?.w === 0 || false; + this.moreToCome = command.writeConcern?.w === 0 || false; this.exhaustAllowed = typeof options.exhaustAllowed === 'boolean' ? options.exhaustAllowed : false; }