Skip to content

Commit c99d32f

Browse files
committed
default batchSize to 0 for legacy find path
1 parent 037e759 commit c99d32f

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
@@ -166,7 +166,7 @@ function prepareLegacyFindQuery(
166166
options = options || {};
167167

168168
const readPreference = getReadPreference(cmd, options);
169-
const batchSize = cmd.batchSize || options.batchSize;
169+
const batchSize = cmd.batchSize || options.batchSize || 0;
170170
const limit = cmd.limit || options.limit;
171171
const numberToSkip = cmd.skip || options.skip || 0;
172172

0 commit comments

Comments
 (0)