@@ -105,6 +105,16 @@ export type ExecutionResult = {
105
105
data ?: ?{ [ key : string ] : mixed } ;
106
106
} ;
107
107
108
+ export type ExecutionArgs = { |
109
+ schema : GraphQLSchema ,
110
+ document : DocumentNode ,
111
+ rootValue ?: mixed ,
112
+ contextValue ?: mixed ,
113
+ variableValues ?: ?{ [ key : string ] : mixed } ,
114
+ operationName ?: ?string ,
115
+ fieldResolver ?: ?GraphQLFieldResolver < any , any>
116
+ | } ;
117
+
108
118
/**
109
119
* Implements the "Evaluating requests" section of the GraphQL specification.
110
120
*
@@ -115,15 +125,10 @@ export type ExecutionResult = {
115
125
*
116
126
* Accepts either an object with named arguments, or individual arguments.
117
127
*/
118
- declare function execute ( { |
119
- schema : GraphQLSchema ,
120
- document : DocumentNode ,
121
- rootValue ?: mixed ,
122
- contextValue ?: mixed ,
123
- variableValues ?: ?{ [ key : string ] : mixed } ,
124
- operationName ?: ?string ,
125
- fieldResolver ?: ?GraphQLFieldResolver < any , any>
126
- | } , ..._ : [ ] ) : Promise < ExecutionResult > ;
128
+ declare function execute (
129
+ ExecutionArgs ,
130
+ ..._ : [ ]
131
+ ) : Promise < ExecutionResult > ;
127
132
/* eslint-disable no-redeclare */
128
133
declare function execute(
129
134
schema: GraphQLSchema,
0 commit comments