Im working with AEM content fragments and trying to fetch the data using GraphQL.
Below is my query -
{
productByPath(_path: "/content/dam/my/product", variation:"master") {
item {
productDescription {
html
}
}
_references {
... on DisclaimerModel {
productDisclaimer {
html
}
}
... on DiscountModel {
_path
discountPercent
}
... on AbnModel {
_path
abn
}
}
}
}
I am trying to fetch all content fragment references from the productDescription RTE of the product content fragment. The query works fine and I am able to fetch the references.
Now the productDisclaimer is also an RTE and contains references to other content fragments that I want to fetch. If there a way to nest _references ?