Skip to content

Commit 771af5b

Browse files
mbroadstdaprahamian
authored andcommitted
chore: leave a note to remove callback-form of aggregate in 4.x
1 parent 0b3e8f2 commit 771af5b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/collection.js

+1
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,7 @@ Collection.prototype.aggregate = function(pipeline, options, callback) {
17581758
options
17591759
);
17601760

1761+
// TODO: remove this when NODE-2074 is resolved
17611762
if (typeof callback === 'function') {
17621763
callback(null, cursor);
17631764
return;

lib/db.js

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ Db.prototype.aggregate = function(pipeline, options, callback) {
336336
options
337337
);
338338

339+
// TODO: remove this when NODE-2074 is resolved
339340
if (typeof callback === 'function') {
340341
callback(null, cursor);
341342
return;

0 commit comments

Comments
 (0)