Skip to content

Commit

Permalink
refactor(export): expose AggregationCursor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hugocaillard authored and daprahamian committed Aug 2, 2018
1 parent 13d776f commit 6ef85c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6ef85c4

Please sign in to comment.