Package graphql.schema.impl
Class SchemaUtil
java.lang.Object
graphql.schema.impl.SchemaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLObjectType
getOperationRootType
(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition) static com.google.common.collect.ImmutableMap
<String, List<GraphQLObjectType>> groupInterfaceImplementationsByName
(List<GraphQLNamedType> allTypesAsList) static void
replaceTypeReferences
(GraphQLSchema schema) static void
visitPartiallySchema
(GraphQLSchema partiallyBuiltSchema, GraphQLTypeVisitor... visitors) Called to visit a partially built schema (duringGraphQLSchema
build phases) with a set of visitors Each visitor is expected to hold its own side effects that might be last used to construct a full schema
-
Constructor Details
-
SchemaUtil
public SchemaUtil()
-
-
Method Details
-
visitPartiallySchema
public static void visitPartiallySchema(GraphQLSchema partiallyBuiltSchema, GraphQLTypeVisitor... visitors) Called to visit a partially built schema (duringGraphQLSchema
build phases) with a set of visitors Each visitor is expected to hold its own side effects that might be last used to construct a full schema- Parameters:
partiallyBuiltSchema
- the partially built schemavisitors
- the visitors to call
-
groupInterfaceImplementationsByName
public static com.google.common.collect.ImmutableMap<String,List<GraphQLObjectType>> groupInterfaceImplementationsByName(List<GraphQLNamedType> allTypesAsList) -
groupImplementationsForInterfacesAndObjects
public Map<String,List<GraphQLImplementingType>> groupImplementationsForInterfacesAndObjects(GraphQLSchema schema) -
replaceTypeReferences
-
getOperationRootType
public static GraphQLObjectType getOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition)
-