Package graphql.schema.impl
Class SchemaUtil
- java.lang.Object
-
- graphql.schema.impl.SchemaUtil
-
public class SchemaUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SchemaUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphQLObjectTypegetOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition)java.util.Map<java.lang.String,java.util.List<GraphQLImplementingType>>groupImplementationsForInterfacesAndObjects(GraphQLSchema schema)static com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<GraphQLObjectType>>groupInterfaceImplementationsByName(java.util.List<GraphQLNamedType> allTypesAsList)static voidreplaceTypeReferences(GraphQLSchema schema)static voidvisitPartiallySchema(GraphQLSchema partiallyBuiltSchema, GraphQLTypeVisitor... visitors)Called to visit a partially built schema (duringGraphQLSchemabuild 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
-
-
-
Method Detail
-
visitPartiallySchema
public static void visitPartiallySchema(GraphQLSchema partiallyBuiltSchema, GraphQLTypeVisitor... visitors)
Called to visit a partially built schema (duringGraphQLSchemabuild 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<java.lang.String,java.util.List<GraphQLObjectType>> groupInterfaceImplementationsByName(java.util.List<GraphQLNamedType> allTypesAsList)
-
groupImplementationsForInterfacesAndObjects
public java.util.Map<java.lang.String,java.util.List<GraphQLImplementingType>> groupImplementationsForInterfacesAndObjects(GraphQLSchema schema)
-
replaceTypeReferences
public static void replaceTypeReferences(GraphQLSchema schema)
-
getOperationRootType
public static GraphQLObjectType getOperationRootType(GraphQLSchema graphQLSchema, OperationDefinition operationDefinition)
-
-