We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, when working with GraphQL queries in Storyblok, we need to handle them outside the JS client instance. This separation leads to:
Add a GraphQL wrapper method to the Storyblok JS Client that allows executing GraphQL queries through the client instance itself.
// GraphQL query const query = ` query { PageItem(id: $id) { name content { _uid component } } } `; // Parameters const version = 'draft'; const variables = { id: '<story-id-123123>' }; // Execution const response = await StoryblokClient.graphql(query, version, variables);
A proof of concept implementation has already been created and can be found here: #868
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem Statement
Currently, when working with GraphQL queries in Storyblok, we need to handle them outside the JS client instance. This separation leads to:
Proposed Solution
Add a GraphQL wrapper method to the Storyblok JS Client that allows executing GraphQL queries through the client instance itself.
Proposed API
Benefits
Implementation Details
A proof of concept implementation has already been created and can be found here:
#868
Questions for Discussion
References
The text was updated successfully, but these errors were encountered: