diff --git a/src/execution/execute.js b/src/execution/execute.js index 6f57c1e2f5..e3e80e3724 100644 --- a/src/execution/execute.js +++ b/src/execution/execute.js @@ -113,7 +113,7 @@ export type ExecutionContext = {| */ export type ExecutionResult = { errors?: $ReadOnlyArray, - data?: ObjMap, + data?: ObjMap | null, }; export type ExecutionArgs = {| @@ -238,7 +238,7 @@ function executeImpl( function buildResponse( exeContext: ExecutionContext, data: PromiseOrValue | null>, -) { +): ExecutionResult { if (isPromise(data)) { return data.then(resolved => buildResponse(exeContext, resolved)); }