Class GraphQLWiring
java.lang.Object
com.graphql_java_generator.samples.forum.client.graphql.forum.client.util.GraphQLWiring
- All Implemented Interfaces:
org.springframework.graphql.execution.RuntimeWiringConfigurer
@Component("graphQLWiring${configuration.springBeanSuffix}")
public class GraphQLWiring
extends Object
implements org.springframework.graphql.execution.RuntimeWiringConfigurer
Thanks to spring-graphql, the POJO classes are auto-magically discovered and mapped. But the custom scalars still needs to be 'manually' wired.
This is the objective of this class.
Based on the https://www.graphql-java.com/tutorials/getting-started-with-spring-boot/ tutorial
Based on the https://www.graphql-java.com/tutorials/getting-started-with-spring-boot/ tutorial
- Author:
- etienne-sf
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(graphql.schema.idl.RuntimeWiring.Builder builder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.graphql.execution.RuntimeWiringConfigurer
configure
-
Field Details
-
logger
protected org.slf4j.Logger loggerThe logger for this instance
-
-
Constructor Details
-
GraphQLWiring
public GraphQLWiring()
-
-
Method Details
-
configure
public void configure(graphql.schema.idl.RuntimeWiring.Builder builder) - Specified by:
configure
in interfaceorg.springframework.graphql.execution.RuntimeWiringConfigurer
-