This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Using existing schema for requests #654
Unanswered
wiedehoeft
asked this question in
Q&A
Replies: 1 comment 1 reply
-
See example of Kotlin GraphQL client for graphql-java-kickstart server here |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Graphql-java tools provide the possibility to execute queries on server-side: https://www.graphql-java.com/documentation/v16/execution/
But it is unclear how to use this with graphql-java-kickstart. The existing schema file is parsed and the only need for implementations are the resolver with a
DataFetchingEnvironment
.Exists part that can be reused for the upper example to use the existing, parsed schema definition for new custom queries?
We have tried it this way
But the result is always empty
{data={getMainAccount=null}}
, after execution with a SpringBootIntegrationTest. This does not surprise, because the classes which implement methods withdataFetchingEnvironment
are not called.Beta Was this translation helpful? Give feedback.
All reactions