Expand my Community achievements bar.

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
    }
  }
}