Skip to content

Commit dc3e06a

Browse files
authored
docs(NODE-3572): note the removal of callbacks from cursor returning functions (#2984)
1 parent cd28a8c commit dc3e06a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/CHANGES_4.0.0.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ interface InsertOneResult {
6363

6464
### Cursor changes
6565

66+
#### Cursor returning functions
67+
68+
The following methods used to accept a callback as well as return the relevant cursor.
69+
The callback parameter has now been removed and users should only use the returned cursor.
70+
71+
- `Collection.find()`
72+
- `Collection.aggregate()`
73+
- `Db.aggregate()`
74+
75+
#### Cursor classes
76+
6677
Affected classes:
6778

6879
- `AbstractCursor`

0 commit comments

Comments
 (0)