We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e4a9c6 commit 21a2de9Copy full SHA for 21a2de9
src/cursor/abstract_cursor.ts
@@ -532,7 +532,7 @@ export abstract class AbstractCursor<
532
const oldTransform = this[kTransform] as (doc: TSchema) => TSchema; // TODO(NODE-3283): Improve transform typing
533
if (oldTransform) {
534
this[kTransform] = doc => {
535
- return transform(oldTransform(doc));
+ return this.makeSafeTransform(transform)(oldTransform(doc));
536
};
537
} else {
538
this[kTransform] = transform;
0 commit comments