Package se.l4.graphql.binding.internal
Class InternalGraphQLSchemaBuilder
java.lang.Object
se.l4.graphql.binding.internal.InternalGraphQLSchemaBuilder
public class InternalGraphQLSchemaBuilder extends Object
Internal class that does the actual resolving of types.
-
Constructor Summary
Constructors Constructor Description InternalGraphQLSchemaBuilder()
-
Method Summary
Modifier and Type Method Description void
addDirective(GraphQLDirectiveResolver<? extends Annotation> directive)
Add a directive for use during resolution.void
addParameter(GraphQLParameterResolver<? extends Annotation> resolver)
Add a parameter for use during resolution.void
addResolver(GraphQLResolver resolver)
void
addRootType(Class<?> type, DataFetchingSupplier<?> supplier)
Add a type that should be used to extract queries and mutations in the root of the system.void
addType(Class<?> type)
Add a type that should be made available.graphql.schema.GraphQLSchema
build()
void
setInstanceFactory(se.l4.commons.types.InstanceFactory instanceFactory)
-
Constructor Details
-
InternalGraphQLSchemaBuilder
public InternalGraphQLSchemaBuilder()
-
-
Method Details
-
setInstanceFactory
public void setInstanceFactory(se.l4.commons.types.InstanceFactory instanceFactory) -
addRootType
Add a type that should be used to extract queries and mutations in the root of the system.- Parameters:
type
-supplier
-
-
addType
Add a type that should be made available.- Parameters:
type
-
-
addResolver
-
addDirective
Add a directive for use during resolution. -
addParameter
Add a parameter for use during resolution. -
build
public graphql.schema.GraphQLSchema build()
-