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.
Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
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
    }
  }
}

2 replies

Saravanan_Dharmaraj
Saravanan_DharmarajAccepted solution
New Participant
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
    }
  }
}
Translate
j0S102X5Author
New Participant
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.

Translate