Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

GraphQL : Is is possible to query content fragments from specific folder location?

Avatar

Level 5

I want to use GraphQL to query content fragments in specific folder location. Can I do it using GQL or would that only be possible in QueryBuilder API?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Sample query:

{
  cityByPath (_path: "/content/dam/sample-content-fragments/folder") {
    item {
      _path
      name
    }
  }
}

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Sample query:

{
  cityByPath (_path: "/content/dam/sample-content-fragments/folder") {
    item {
      _path
      name
    }
  }
}