Added a check for variables in the GraphQL service's parseArgs so that variables in arrays would be added (#13671)

* added a check for vars in ListValue of parseArgs

* formatting
This commit is contained in:
Jay Cammarano
2022-06-03 11:11:53 -04:00
committed by GitHub
parent 4d63fba50a
commit 6e87d8a55b

View File

@@ -1399,7 +1399,11 @@ export class GraphQLService {
if (valueNode.kind === 'ObjectValue') {
values.push(this.parseArgs(valueNode.fields, variableValues));
} else {
values.push((valueNode as any).value);
if (valueNode.kind === 'Variable') {
values.push(variableValues[valueNode.name.value]);
} else {
values.push((valueNode as any).value);
}
}
}