Skip to content

Commit 8d76a71

Browse files
authored
feat(NODE-4774): deprecate cursor forEach (#3622)
1 parent 2839e95 commit 8d76a71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cursor/abstract_cursor.ts

+1
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ export abstract class AbstractCursor<
397397
* If the iterator returns `false`, iteration will stop.
398398
*
399399
* @param iterator - The iteration callback.
400+
* @deprecated - Will be removed in a future release. Use for await...of instead.
400401
*/
401402
async forEach(iterator: (doc: TSchema) => boolean | void): Promise<void> {
402403
if (typeof iterator !== 'function') {

0 commit comments

Comments
 (0)