0

I am able fetch datasource data and Context Item data using graphQL query. I want to fetch placeholder's data of that rendering. My query is like:

query IntegratedDemoQuery($datasource: String!, $contextItem: String!) {
  datasource: item(path: $datasource) {
    id
    name
    ...PlaceholderInfo
    ... on GraphQLDemoIntegratedPage {
      heading {
        value
      }
    }
  }
  contextItem: item(path: $contextItem) {
    id
    ... on AppRoute {
      pageTitle {
        value
      }
    }
    children(requirePresentation: true) {
      id
      ... on AppRoute {
        pageTitle {
          value
        }
      }
      url(options: {disableLanguageEmbedding: true})
    }
  }
}

fragment PlaceholderInfo on Placeholder {
  placeholderKey {
    value
    id
  }
}

It has not given any placeholder's data. Please help me into this. Thanks in advanced.

Your Answer

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

Browse other questions tagged or ask your own question.