I have been successfully using GraphQL to filter on items assigned to a specific template.

Is it possible to do the same with items of a certain PageType?

  • 1
    What do you mean with PageType? – Jan Bluemink Jul 3 at 7:50

There is an includeTemplateIDs filtering option on children:

topItem: item(path: $datasource) {      
     children(includeTemplateIDs: "{C6F6A81A-F9C9-45D8-AF4E-3E818C470F53}") {
       ... on CustomTemplate  { 
         customField { value }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.