File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ const collectSubfields = memoize3(
139
139
*/
140
140
export interface ValidatedExecutionArgs {
141
141
schema : GraphQLSchema ;
142
+ // TODO: consider deprecating if/when fragment arguments are officially supported
143
+ // and/or are exposed within GraphQLResolveInfo.
142
144
fragmentDefinitions : ObjMap < FragmentDefinitionNode > ;
143
145
fragments : ObjMap < FragmentDetails > ;
144
146
rootValue : unknown ;
@@ -499,6 +501,7 @@ export function validateExecutionArgs(
499
501
}
500
502
break ;
501
503
case Kind . FRAGMENT_DEFINITION : {
504
+ fragmentDefinitions [ definition . name . value ] = definition ;
502
505
let variableSignatures ;
503
506
if ( definition . variableDefinitions ) {
504
507
variableSignatures = Object . create ( null ) ;
@@ -507,7 +510,6 @@ export function validateExecutionArgs(
507
510
variableSignatures [ signature . name ] = signature ;
508
511
}
509
512
}
510
- fragmentDefinitions [ definition . name . value ] = definition ;
511
513
fragments [ definition . name . value ] = { definition, variableSignatures } ;
512
514
break ;
513
515
}
You can’t perform that action at this time.
0 commit comments