Skip to content

Commit 3ea0f63

Browse files
committed
default batchSize to 0 for legacy find path
1 parent 4b44e98 commit 3ea0f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmap/wire_protocol/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function prepareLegacyFindQuery(
174174
options = options || {};
175175

176176
const readPreference = getReadPreference(cmd, options);
177-
const batchSize = cmd.batchSize || options.batchSize;
177+
const batchSize = cmd.batchSize || options.batchSize || 0;
178178
const limit = cmd.limit || options.limit;
179179
const numberToSkip = cmd.skip || options.skip || 0;
180180

0 commit comments

Comments
 (0)