Enable DataFetchingEnvironment as part of @GraphQLApi @Query methods
See original GitHub issueHelidon Version: 2.3 Helidon SE or Helidon MP: MP JDK version: 11 OS: MacOS 11.4
Problem Description
Lets assume we have class AllResources
that contains Resource A,B,C…:
AllResources {
ResourceA
ResourceB
ResourceC
...
}
Each resource is in different DB table, and it takes time to process each one of them.
We would like to expose single endpoint and process ResourceX query only if the user request it.
If it was possible to add to @Query
method something like ExecutionInput
it was great…
Issue Analytics
- State:
- Created 2 years ago
- Comments:18
Top Results From Across the Web
Spring for GraphQL Documentation
Server transports allow intercepting requests before and after the GraphQL Java engine is called to process a request.
Read more >DataFetchingEnvironment (graphql-java 12.0 API) - Javadoc.io
This returns the variables that have been passed into the query. Method Detail. getSource. <T> T getSource(). This is ...
Read more >Graphql - context.unwrap(DataFetchingEnvironment.class) is ...
The context hold information about the request. So any method that is a query or mutation, or any method called by those further...
Read more >Getting Started with GraphQL and Spring Boot - Baeldung
This works to put the control where it belongs, with the API developer specifying what's possible and the API consumer specifying what's desired ......
Read more >Tutorial with Spring for GraphQl
Builder to register the handler method as a graphql.schema.DataFetcher for the query field bookById . In GraphQL Java, DataFetchingEnvironment provides access ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, that will be great.
environment.getExecutionStepInfo().getField().getSingleField().getSelectionSet().getSelections()
is exactly what I need…Yes, that was my meaning. Thanks! Regarding the Security Context, it is possible to inject it to the bean so there is workaround for that…