We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61e5bcb commit 4235d04Copy full SHA for 4235d04
lib/aggregation_cursor.js
@@ -148,7 +148,7 @@ AggregationCursor.prototype.batchSize = function(value) {
148
if (this.s.state === AggregationCursor.CLOSED || this.isDead())
149
throw MongoError.create({ message: 'Cursor is closed', driver: true });
150
if (typeof value !== 'number')
151
- throw MongoError.create({ message: 'batchSize requires an integer', drvier: true });
+ throw MongoError.create({ message: 'batchSize requires an integer', driver: true });
152
if (this.s.cmd.cursor) this.s.cmd.cursor.batchSize = value;
153
this.setCursorBatchSize(value);
154
return this;
0 commit comments