Almost EVERYONE who tried headless systems said they saw benefits. Download the state of CMS now!

Storyblok now on AWS Marketplace: Read more

O’Reilly Report: Decoupled Applications and Composable Web Architectures - Download Now

Empower your teams & get a 582% ROI: See Storyblok's CMS in action

Skip to main content
  • Section titled Resolve relations in nested GraphQL query Resolve relations in nested GraphQL query

    Changes in: gapi

    It's now possible to resolve one more level of relations with Storyblok's GraphQL API. This lets you receive your data with less requests.

    The example below shows a query where you have an author single option field inside the page item. The author content type has also a single option field called "group" which can be resolved with the resolve_relations parameter.

    {
      PageItem(id: "test") {
        id
        content {
          author(resolve_relations: "author.group") {
            content
            name
          }
        }
      }
    }