Skip to content

Commit cbccaf9

Browse files
committed
Revert "unnecessary call throwing errors"
1 parent d934068 commit cbccaf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/execution/execute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ function defaultResolveFn(source, args, { fieldName }) {
869869
// ensure source is a value for which property access is acceptable.
870870
if (typeof source !== 'number' && typeof source !== 'string' && source) {
871871
const property = (source: any)[fieldName];
872-
return typeof property === 'function' ? property(source) : property;
872+
return typeof property === 'function' ? property.call(source) : property;
873873
}
874874
}
875875

0 commit comments

Comments
 (0)