Hi team, I am using GraphQL API in AEM and wanted to know how can I query variation based data from a content fragment?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @spidey1405,
I think you can do something like this:
{ cityList (variation: "variation_name") { items { _path name country population categories } } }
Under below page you will find more sample queries (including variation usage) that could be useful:
Hi @spidey1405,
I think you can do something like this:
{ cityList (variation: "variation_name") { items { _path name country population categories } } }
Under below page you will find more sample queries (including variation usage) that could be useful:
I am writing this query:
query { articlesList(variation:"Spanish") { items { _path, title, } } }
but this still gives me master version only.
Okay a slight correction, your variation must be lower cased and spaces should be replaced with _ and then it should work fine.
Here are some examples:
Variation Name: Variation 01
then in query it must be `variation:"variation_01"`