mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user