Graphql query with query variable
Dear Members,
I am writing graphql query on content fragment, I need to pass 'variation' query variable to get the content from particular variation of the content fragment.
The query is working fine on Graphql Query Editor in AEM cloud SDK. However when I copy the url and hit using the browser it is not working, it need variation as query parameter in URL below.
http://localhost:4502/graphql/execute.json/wknd/Employee%20Pradeep;variation=
http://localhost:4502/graphql/execute.json/wknd/Employee%20Pradeep;variation=pradeep_new_variation
http://localhost:4502/graphql/execute.json/wknd/Employee%20Pradeep?variation=pradeep_new_variation
http://localhost:4502/graphql/execute.json/wknd/Employee%20Pradeep;variation:pradeep_new_variation
I have tried all possible combination and passed query parameter using ? or colon in url, nothing worked.
Any advise/solution around this is highly appreciated!!
Thanks,
Pradeep