AEM 6.5 | Content Fragments RTE inline references returning extra references
In my Content Fragment model, I'm using a few Rich Text Fields with Fragment Reference of a particular Content Fragment model type allowed. While fetching the inline references used inside the RTE content, it returns all the fragment references used in any of the Content Fragments and not only used inside the queried Content Fragment. Wondering if this is the desired behavior? If yes, Is there any way to fetch only references used inside the RTE of the queried Content model? The query is similar to:
query productList($productID:String,$locale:String)
{productList(filter:{
productID : {_expressions: [{value:$productID}]}},
_locale : $locale
)
{items{
_path,
tagLine{html},
}
_references {
...on FootnoteModel {
_path
title
description
{
html
}
__typename
}
}
}
}