However when executing the request I can see the query is:
query ($name:String,$language:String){ jcr { nodeByPath { marketingFactory { optimizationTestVariant { path name property (name:$name,language:$language) { value } uuid } personalizedVariant { path name property (name:$name,language:$language) { value } uuid } } name uuid } } }
Which obviously returns:
Validation error of type VariableTypeMismatch: Variable type doesn't match since $name is not the expected "text"
I used to use GraphQLArguments, which worked fine but when you have the same arguments at two different places it is recommended to use Variables.
What am I doing wrong?
Hi, My variables don't seem to be taken into account when executing the query
In the Model I have defined, one of the property has the variables definition:
However when executing the request I can see the query is:
query ($name:String,$language:String){ jcr { nodeByPath { marketingFactory { optimizationTestVariant { path name property (name:$name,language:$language) { value } uuid } personalizedVariant { path name property (name:$name,language:$language) { value } uuid } } name uuid } } }
Which obviously returns: Validation error of type VariableTypeMismatch: Variable type doesn't match since $name is not the expected "text"
I used to use GraphQLArguments, which worked fine but when you have the same arguments at two different places it is recommended to use Variables. What am I doing wrong?