@@ -81,7 +81,7 @@ type ExecutionContext = {
81
81
fragments: { [ key : string ] : FragmentDefinition } ;
82
82
rootValue: any ;
83
83
operation: OperationDefinition ;
84
- variables : { [ key : string ] : any } ;
84
+ variableValues : { [ key : string ] : any } ;
85
85
errors: Array < GraphQLError > ;
86
86
}
87
87
@@ -155,7 +155,7 @@ function buildExecutionContext(
155
155
schema : GraphQLSchema ,
156
156
documentAST : Document ,
157
157
rootValue : any ,
158
- variableValues : ?{ [ key : string ] : any } ,
158
+ rawVariableValues : ?{ [ key : string ] : any } ,
159
159
operationName : ?string
160
160
) : ExecutionContext {
161
161
var errors : Array < GraphQLError > = [];
@@ -181,13 +181,13 @@ function buildExecutionContext(
181
181
if ( ! operation ) {
182
182
throw new GraphQLError ( `Unknown operation named "${ opName } ".` ) ;
183
183
}
184
- var variables = getVariableValues (
184
+ var variableValues = getVariableValues (
185
185
schema ,
186
186
operation . variableDefinitions || [ ] ,
187
- variableValues || { }
187
+ rawVariableValues || { }
188
188
) ;
189
189
var exeContext : ExecutionContext =
190
- { schema, fragments, rootValue, operation, variables , errors } ;
190
+ { schema, fragments, rootValue, operation, variableValues , errors } ;
191
191
return exeContext ;
192
192
}
193
193
@@ -383,7 +383,7 @@ function shouldIncludeNode(
383
383
var { if : skipIf } = getArgumentValues (
384
384
GraphQLSkipDirective . args ,
385
385
skipAST . arguments ,
386
- exeContext . variables
386
+ exeContext . variableValues
387
387
) ;
388
388
return ! skipIf ;
389
389
}
@@ -396,7 +396,7 @@ function shouldIncludeNode(
396
396
var { if : includeIf } = getArgumentValues (
397
397
GraphQLIncludeDirective . args ,
398
398
includeAST . arguments ,
399
- exeContext . variables
399
+ exeContext . variableValues
400
400
) ;
401
401
return Boolean ( includeIf ) ;
402
402
}
@@ -478,7 +478,7 @@ function resolveField(
478
478
var args = getArgumentValues (
479
479
fieldDef . args ,
480
480
fieldAST . arguments ,
481
- exeContext . variables
481
+ exeContext . variableValues
482
482
) ;
483
483
484
484
// The resolve function's optional third argument is a collection of
@@ -492,7 +492,7 @@ function resolveField(
492
492
fragments : exeContext . fragments ,
493
493
rootValue : exeContext . rootValue ,
494
494
operation : exeContext . operation ,
495
- variables : exeContext . variables ,
495
+ variableValues : exeContext . variableValues ,
496
496
} ;
497
497
498
498
// If an error occurs while calling the field `resolve` function, ensure that
0 commit comments