Skip to content

Commit 6ef85c4

Browse files
hugocaillarddaprahamian
authored andcommitted
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.
1 parent 13d776f commit 6ef85c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ connect.MongoNetworkError = core.MongoNetworkError;
1313

1414
// Actual driver classes exported
1515
connect.Admin = require('./lib/admin');
16+
connect.AggregationCursor = require('./lib/aggregation_cursor');
1617
connect.MongoClient = require('./lib/mongo_client');
1718
connect.Db = require('./lib/db');
1819
connect.Collection = require('./lib/collection');

0 commit comments

Comments
 (0)