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
}
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Anil,
Can you please check if below items are validated:
Verify that the path you are using in the query is correct and corresponds to the location of the content fragment in the AEM content repository.
Check that the resource at the specified path is actually a content fragment and not some other type of resource.
Make sure that you have the necessary permissions to access the content fragment resource.
Let me know if still the issue persists.
Thanks,
Monendra
Hi Anil,
Can you please check if below items are validated:
Verify that the path you are using in the query is correct and corresponds to the location of the content fragment in the AEM content repository.
Check that the resource at the specified path is actually a content fragment and not some other type of resource.
Make sure that you have the necessary permissions to access the content fragment resource.
Let me know if still the issue persists.
Thanks,
Monendra
seems like resource at the specified path "/conf/bright/settings/dam/cfm/models/seabright" is actually NOT a content fragment and has some other type of resource. Verify
@Anilkumar0208
The path you are referring is Content Fragment Model Path, and not the Content Fragment itself. The query you are referring in above code, is looking for a CF Path, please check sample query below and link to the basic queries:
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...
{
cityByPath (_path: "/content/dam/sample-content-fragments/cities/berlin") {
item {
_path
name
country
population
categories
}
}
}
Views
Likes
Replies
Views
Like
Replies