Skip to content

Commit

Permalink
docs(NODE-3572): note the removal of callbacks from cursor returning …
Browse files Browse the repository at this point in the history
…functions (#2984)
  • Loading branch information
nbbeeken authored and ljhaywar committed Nov 9, 2021
1 parent 96f0b51 commit c869479
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/CHANGES_4.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ interface InsertOneResult {

### Cursor changes

#### Cursor returning functions

The following methods used to accept a callback as well as return the relevant cursor.
The callback parameter has now been removed and users should only use the returned cursor.

- `Collection.find()`
- `Collection.aggregate()`
- `Db.aggregate()`

#### Cursor classes

Affected classes:

- `AbstractCursor`
Expand Down

0 comments on commit c869479

Please sign in to comment.