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