Package graphql.schema
Class GraphQLSchema.Builder
java.lang.Object
graphql.schema.GraphQLSchema.Builder
- Enclosing class:
GraphQLSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalDirective(GraphQLDirective additionalDirective) additionalDirectives(Set<GraphQLDirective> additionalDirectives) additionalType(GraphQLType additionalType) additionalTypes(Set<GraphQLType> additionalTypes) build()Builds the schemaThis is used to clear all the directives in the builder so far.codeRegistry(GraphQLCodeRegistry codeRegistry) definition(SchemaDefinition definition) description(String description) extensionDefinitions(List<SchemaExtensionDefinition> extensionDefinitions) introspectionSchemaType(GraphQLObjectType introspectionSchemaType) mutation(GraphQLObjectType mutationType) mutation(GraphQLObjectType.Builder builder) query(GraphQLObjectType queryType) query(GraphQLObjectType.Builder builder) subscription(GraphQLObjectType subscriptionType) subscription(GraphQLObjectType.Builder builder) withSchemaAppliedDirective(GraphQLAppliedDirective appliedDirective) withSchemaAppliedDirectives(GraphQLAppliedDirective... appliedDirectives) withSchemaAppliedDirectives(Collection<? extends GraphQLAppliedDirective> appliedDirectives) withSchemaDirective(GraphQLDirective directive) withSchemaDirectives(GraphQLDirective... directives) withSchemaDirectives(Collection<? extends GraphQLDirective> directives)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
query
-
query
-
mutation
-
mutation
-
subscription
-
subscription
-
codeRegistry
-
additionalTypes
-
additionalType
-
clearAdditionalTypes
-
additionalDirectives
-
additionalDirective
-
clearDirectives
-
withSchemaDirectives
-
withSchemaDirectives
public GraphQLSchema.Builder withSchemaDirectives(Collection<? extends GraphQLDirective> directives) -
withSchemaDirective
-
withSchemaDirective
-
withSchemaAppliedDirectives
public GraphQLSchema.Builder withSchemaAppliedDirectives(GraphQLAppliedDirective... appliedDirectives) -
withSchemaAppliedDirectives
public GraphQLSchema.Builder withSchemaAppliedDirectives(Collection<? extends GraphQLAppliedDirective> appliedDirectives) -
withSchemaAppliedDirective
-
withSchemaAppliedDirective
-
clearSchemaDirectives
This is used to clear all the directives in the builder so far.- Returns:
- the builder
-
definition
-
extensionDefinitions
public GraphQLSchema.Builder extensionDefinitions(List<SchemaExtensionDefinition> extensionDefinitions) -
description
-
introspectionSchemaType
-
build
Builds the schema- Returns:
- the built schema
-