From 6ef85c478dda2e9d25e1c0d4f648c7c6667dcd62 Mon Sep 17 00:00:00 2001 From: hugocaillard Date: Tue, 24 Jul 2018 16:23:09 +0200 Subject: [PATCH] refactor(export): expose AggregationCursor My use case is to be able to do `foo instanceof AggregationCursor` just as one could do with `Cursor` and I don't see any reason why `AggregationCursor` should not be exposed. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 1b07292888..cf30c02c18 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,7 @@ connect.MongoNetworkError = core.MongoNetworkError; // Actual driver classes exported connect.Admin = require('./lib/admin'); +connect.AggregationCursor = require('./lib/aggregation_cursor'); connect.MongoClient = require('./lib/mongo_client'); connect.Db = require('./lib/db'); connect.Collection = require('./lib/collection');