Skip to content

Commit 64027e8

Browse files
hugocaillarddaprahamian
authored andcommitted
refactor(export): expose CommandCursor
1 parent 6ef85c4 commit 64027e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

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

1414
// Actual driver classes exported
1515
connect.Admin = require('./lib/admin');
16-
connect.AggregationCursor = require('./lib/aggregation_cursor');
1716
connect.MongoClient = require('./lib/mongo_client');
1817
connect.Db = require('./lib/db');
1918
connect.Collection = require('./lib/collection');
@@ -24,6 +23,8 @@ connect.ReadPreference = require('mongodb-core').ReadPreference;
2423
connect.GridStore = require('./lib/gridfs/grid_store');
2524
connect.Chunk = require('./lib/gridfs/chunk');
2625
connect.Logger = core.Logger;
26+
connect.AggregationCursor = require('./lib/aggregation_cursor');
27+
connect.CommandCursor = require('./lib/command_cursor');
2728
connect.Cursor = require('./lib/cursor');
2829
connect.GridFSBucket = require('./lib/gridfs-stream');
2930
// Exported to be used in tests not to be used anywhere else

0 commit comments

Comments
 (0)