Merge pull request #29076 from coralproject/master

mongodb 3.0 - Added AggregationCursor.hasNext
This commit is contained in:
Nathan Shively-Sanders
2018-09-21 10:24:22 -07:00
committed by GitHub
+3
View File
@@ -1483,6 +1483,9 @@ export class AggregationCursor<T = Default> extends Readable {
geoNear(document: Object): AggregationCursor<T>;
/** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#group */
group(document: Object): AggregationCursor<T>;
/** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#hasNext */
hasNext(): Promise<boolean>;
hasNext(callback: MongoCallback<boolean>): void;
/** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#isClosed */
isClosed(): boolean;
/** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#limit */