From 4235d045b2f0fa1f194ec0c7b3f7e6be97e37c74 Mon Sep 17 00:00:00 2001 From: Bram Speeckaert Date: Wed, 3 Apr 2019 21:12:25 +0200 Subject: [PATCH] fix(aggregation): fix field name typo --- lib/aggregation_cursor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aggregation_cursor.js b/lib/aggregation_cursor.js index 753fb336694..622d9806659 100644 --- a/lib/aggregation_cursor.js +++ b/lib/aggregation_cursor.js @@ -148,7 +148,7 @@ AggregationCursor.prototype.batchSize = function(value) { if (this.s.state === AggregationCursor.CLOSED || this.isDead()) throw MongoError.create({ message: 'Cursor is closed', driver: true }); if (typeof value !== 'number') - throw MongoError.create({ message: 'batchSize requires an integer', drvier: true }); + throw MongoError.create({ message: 'batchSize requires an integer', driver: true }); if (this.s.cmd.cursor) this.s.cmd.cursor.batchSize = value; this.setCursorBatchSize(value); return this;