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(
139139 */
140140export interface ValidatedExecutionArgs {
141141 schema : GraphQLSchema ;
142+ // TODO: consider deprecating if/when fragment arguments are officially supported
143+ // and/or are exposed within GraphQLResolveInfo.
142144 fragmentDefinitions : ObjMap < FragmentDefinitionNode > ;
143145 fragments : ObjMap < FragmentDetails > ;
144146 rootValue : unknown ;
@@ -499,6 +501,7 @@ export function validateExecutionArgs(
499501 }
500502 break ;
501503 case Kind . FRAGMENT_DEFINITION : {
504+ fragmentDefinitions [ definition . name . value ] = definition ;
502505 let variableSignatures ;
503506 if ( definition . variableDefinitions ) {
504507 variableSignatures = Object . create ( null ) ;
@@ -507,7 +510,6 @@ export function validateExecutionArgs(
507510 variableSignatures [ signature . name ] = signature ;
508511 }
509512 }
510- fragmentDefinitions [ definition . name . value ] = definition ;
511513 fragments [ definition . name . value ] = { definition, variableSignatures } ;
512514 break ;
513515 }
You can’t perform that action at this time.
0 commit comments