Package graphql.schema
Class GraphQLSchema.Builder
- java.lang.Object
-
- graphql.schema.GraphQLSchema.Builder
-
- Enclosing class:
- GraphQLSchema
public static class GraphQLSchema.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
query
public GraphQLSchema.Builder query(GraphQLObjectType.Builder builder)
-
query
public GraphQLSchema.Builder query(GraphQLObjectType queryType)
-
mutation
public GraphQLSchema.Builder mutation(GraphQLObjectType.Builder builder)
-
mutation
public GraphQLSchema.Builder mutation(GraphQLObjectType mutationType)
-
subscription
public GraphQLSchema.Builder subscription(GraphQLObjectType.Builder builder)
-
subscription
public GraphQLSchema.Builder subscription(GraphQLObjectType subscriptionType)
-
fieldVisibility
@Deprecated public GraphQLSchema.Builder fieldVisibility(GraphqlFieldVisibility fieldVisibility)
Deprecated.- Parameters:
fieldVisibility
- the field visibility- Returns:
- this builder
-
codeRegistry
public GraphQLSchema.Builder codeRegistry(GraphQLCodeRegistry codeRegistry)
-
additionalTypes
public GraphQLSchema.Builder additionalTypes(java.util.Set<GraphQLType> additionalTypes)
-
additionalType
public GraphQLSchema.Builder additionalType(GraphQLType additionalType)
-
clearAdditionalTypes
public GraphQLSchema.Builder clearAdditionalTypes()
-
additionalDirectives
public GraphQLSchema.Builder additionalDirectives(java.util.Set<GraphQLDirective> additionalDirectives)
-
additionalDirective
public GraphQLSchema.Builder additionalDirective(GraphQLDirective additionalDirective)
-
clearDirectives
public GraphQLSchema.Builder clearDirectives()
-
withSchemaDirectives
public GraphQLSchema.Builder withSchemaDirectives(GraphQLDirective... directives)
-
withSchemaDirectives
public GraphQLSchema.Builder withSchemaDirectives(java.util.Collection<? extends GraphQLDirective> directives)
-
withSchemaDirective
public GraphQLSchema.Builder withSchemaDirective(GraphQLDirective directive)
-
withSchemaDirective
public GraphQLSchema.Builder withSchemaDirective(GraphQLDirective.Builder builder)
-
withSchemaAppliedDirectives
public GraphQLSchema.Builder withSchemaAppliedDirectives(GraphQLAppliedDirective... appliedDirectives)
-
withSchemaAppliedDirectives
public GraphQLSchema.Builder withSchemaAppliedDirectives(java.util.Collection<? extends GraphQLAppliedDirective> appliedDirectives)
-
withSchemaAppliedDirective
public GraphQLSchema.Builder withSchemaAppliedDirective(GraphQLAppliedDirective appliedDirective)
-
withSchemaAppliedDirective
public GraphQLSchema.Builder withSchemaAppliedDirective(GraphQLAppliedDirective.Builder builder)
-
clearSchemaDirectives
public GraphQLSchema.Builder clearSchemaDirectives()
This is used to clear all the directives in the builder so far.- Returns:
- the builder
-
definition
public GraphQLSchema.Builder definition(SchemaDefinition definition)
-
extensionDefinitions
public GraphQLSchema.Builder extensionDefinitions(java.util.List<SchemaExtensionDefinition> extensionDefinitions)
-
description
public GraphQLSchema.Builder description(java.lang.String description)
-
introspectionSchemaType
public GraphQLSchema.Builder introspectionSchemaType(GraphQLObjectType introspectionSchemaType)
-
build
@Deprecated public GraphQLSchema build(java.util.Set<GraphQLType> additionalTypes)
Deprecated.- Use theadditionalType(GraphQLType)
methodsBuilds the schema- Parameters:
additionalTypes
- - please don't use this anymore- Returns:
- the built schema
-
build
@Deprecated public GraphQLSchema build(java.util.Set<GraphQLType> additionalTypes, java.util.Set<GraphQLDirective> additionalDirectives)
Deprecated.- Use theadditionalType(GraphQLType)
andadditionalDirective(GraphQLDirective)
methodsBuilds the schema- Parameters:
additionalTypes
- - please don't use this any moreadditionalDirectives
- - please don't use this any more- Returns:
- the built schema
-
build
public GraphQLSchema build()
Builds the schema- Returns:
- the built schema
-
-