Skip to content

Commit d934068

Browse files
committed
Merge pull request #330 from wenzowski/master
unnecessary call throwing errors
2 parents 8f495ba + 2cfe490 commit d934068

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.call(source) : property;
872+
return typeof property === 'function' ? property(source) : property;
873873
}
874874
}
875875

0 commit comments

Comments
 (0)