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.
execute
1 parent 87cc061 commit 7c22bceCopy full SHA for 7c22bce
site/graphql-js/APIReference-Execution.md
@@ -38,7 +38,9 @@ export function execute(
38
contextValue?: mixed,
39
variableValues?: ?{[key: string]: mixed},
40
operationName?: ?string
41
-): Promise<ExecutionResult>
+): MaybePromise<ExecutionResult>
42
+
43
+type MaybePromise<T> = Promise<T> | T;
44
45
type ExecutionResult = {
46
data: ?Object;
0 commit comments