Hi AEM Community, Facing issue while accessing content fragment through graphQL . what would be the reason and how to resolve it?
query {
seaBrightByPath(_path: "/conf/bright/settings/dam/cfm/models/seabright") {
item {
firstName
lastName
email
}
}
}
Result
{
"errors": [
{
"message": "Exception while fetching data (/seaBrightByPath) : Path: '/conf/bright/settings/dam/cfm/models/seabright' does yield a Resource but it is not a Content Fragment",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"seaBrightByPath"
],
"extensions": {
"classification": "DataFetchingException"
}
}
],
"data": null
}