public static class GraphQLSchema.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public GraphQLSchema.Builder query(GraphQLObjectType.Builder builder)
public GraphQLSchema.Builder query(GraphQLObjectType queryType)
public GraphQLSchema.Builder mutation(GraphQLObjectType.Builder builder)
public GraphQLSchema.Builder mutation(GraphQLObjectType mutationType)
public GraphQLSchema.Builder subscription(GraphQLObjectType.Builder builder)
public GraphQLSchema.Builder subscription(GraphQLObjectType subscriptionType)
@Deprecated public GraphQLSchema.Builder fieldVisibility(GraphqlFieldVisibility fieldVisibility)
GraphQLCodeRegistry.Builder.fieldVisibility(graphql.schema.visibility.GraphqlFieldVisibility)
insteadfieldVisibility
- the field visibilitypublic GraphQLSchema.Builder codeRegistry(GraphQLCodeRegistry codeRegistry)
public GraphQLSchema.Builder additionalTypes(java.util.Set<GraphQLType> additionalTypes)
public GraphQLSchema.Builder additionalType(GraphQLType additionalType)
public GraphQLSchema.Builder clearAdditionalTypes()
public GraphQLSchema.Builder additionalDirectives(java.util.Set<GraphQLDirective> additionalDirectives)
public GraphQLSchema.Builder additionalDirective(GraphQLDirective additionalDirective)
public GraphQLSchema.Builder clearDirectives()
public GraphQLSchema.Builder withSchemaDirectives(GraphQLDirective... directives)
public GraphQLSchema.Builder withSchemaDirectives(java.util.Collection<? extends GraphQLDirective> directives)
public GraphQLSchema.Builder withSchemaDirective(GraphQLDirective directive)
public GraphQLSchema.Builder withSchemaDirective(GraphQLDirective.Builder builder)
public GraphQLSchema.Builder clearSchemaDirectives()
public GraphQLSchema.Builder definition(SchemaDefinition definition)
public GraphQLSchema.Builder extensionDefinitions(java.util.List<SchemaExtensionDefinition> extensionDefinitions)
public GraphQLSchema.Builder description(java.lang.String description)
public GraphQLSchema.Builder introspectionSchemaType(GraphQLObjectType introspectionSchemaType)
@Deprecated public GraphQLSchema build(java.util.Set<GraphQLType> additionalTypes)
additionalType(GraphQLType)
methodsadditionalTypes
- - please dont use this any more@Deprecated public GraphQLSchema build(java.util.Set<GraphQLType> additionalTypes, java.util.Set<GraphQLDirective> additionalDirectives)
additionalType(GraphQLType)
and additionalDirective(GraphQLDirective)
methodsadditionalTypes
- - please don't use this any moreadditionalDirectives
- - please don't use this any morepublic GraphQLSchema build()