Retrive attributes of a content fragment variation using graphql | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Saravanan_Dharmaraj

@j0s102x5 Please see the below example given by Adobe

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-api/sample-queries.html?lang=en#sample-wknd-variation-multiple-fragment-given-model

 

Sample Query

{
  authorList(variation: "another") {
    items {
        _path
        _variation
        firstName
        lastName
        birthDay
    }
  }
}

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
April 10, 2023

@j0s102x5 Please see the below example given by Adobe

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-api/sample-queries.html?lang=en#sample-wknd-variation-multiple-fragment-given-model

 

Sample Query

{
  authorList(variation: "another") {
    items {
        _path
        _variation
        firstName
        lastName
        birthDay
    }
  }
}
j0S102X5Author
April 10, 2023

Thanks for the reply. currently while quering the master we have a field "_variations" which is giving a list of Strings. I am looking for some from properties of variation as well like "_path", firstName.