We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2839e95 commit 8d76a71Copy full SHA for 8d76a71
src/cursor/abstract_cursor.ts
@@ -397,6 +397,7 @@ export abstract class AbstractCursor<
397
* If the iterator returns `false`, iteration will stop.
398
*
399
* @param iterator - The iteration callback.
400
+ * @deprecated - Will be removed in a future release. Use for await...of instead.
401
*/
402
async forEach(iterator: (doc: TSchema) => boolean | void): Promise<void> {
403
if (typeof iterator !== 'function') {
0 commit comments