From cbccaf9baf1d4dda949bb317ccc872524ad884db Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Thu, 24 Mar 2016 13:56:35 -0700 Subject: [PATCH] Revert "unnecessary call throwing errors" --- src/execution/execute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execution/execute.js b/src/execution/execute.js index feb900561e..f419ebc156 100644 --- a/src/execution/execute.js +++ b/src/execution/execute.js @@ -869,7 +869,7 @@ function defaultResolveFn(source, args, { fieldName }) { // ensure source is a value for which property access is acceptable. if (typeof source !== 'number' && typeof source !== 'string' && source) { const property = (source: any)[fieldName]; - return typeof property === 'function' ? property(source) : property; + return typeof property === 'function' ? property.call(source) : property; } }