public class GraphQLSchema
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphQLSchema.Builder |
Constructor and Description |
---|
GraphQLSchema(GraphQLObjectType queryType) |
GraphQLSchema(GraphQLObjectType queryType,
GraphQLObjectType mutationType,
GraphQLObjectType subscriptionType,
java.util.Set<GraphQLType> dictionary) |
GraphQLSchema(GraphQLObjectType queryType,
GraphQLObjectType mutationType,
java.util.Set<GraphQLType> additionalTypes) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<GraphQLType> |
getAdditionalTypes() |
java.util.List<GraphQLType> |
getAllTypesAsList() |
GraphQLDirective |
getDirective(java.lang.String name) |
java.util.List<GraphQLDirective> |
getDirectives() |
GraphQLObjectType |
getMutationType() |
GraphQLObjectType |
getQueryType() |
GraphQLObjectType |
getSubscriptionType() |
GraphQLType |
getType(java.lang.String typeName) |
boolean |
isSupportingMutations() |
boolean |
isSupportingSubscriptions() |
static GraphQLSchema.Builder |
newSchema() |
public GraphQLSchema(GraphQLObjectType queryType)
public GraphQLSchema(GraphQLObjectType queryType, GraphQLObjectType mutationType, java.util.Set<GraphQLType> additionalTypes)
public GraphQLSchema(GraphQLObjectType queryType, GraphQLObjectType mutationType, GraphQLObjectType subscriptionType, java.util.Set<GraphQLType> dictionary)
public java.util.Set<GraphQLType> getAdditionalTypes()
public GraphQLType getType(java.lang.String typeName)
public java.util.List<GraphQLType> getAllTypesAsList()
public GraphQLObjectType getQueryType()
public GraphQLObjectType getMutationType()
public GraphQLObjectType getSubscriptionType()
public java.util.List<GraphQLDirective> getDirectives()
public GraphQLDirective getDirective(java.lang.String name)
public boolean isSupportingMutations()
public boolean isSupportingSubscriptions()
public static GraphQLSchema.Builder newSchema()