Class SchemaUtil


  • public class SchemaUtil
    extends java.lang.Object
    • Constructor Detail

      • SchemaUtil

        public SchemaUtil()
    • Method Detail

      • visitPartiallySchema

        public static void visitPartiallySchema​(GraphQLSchema partiallyBuiltSchema,
                                                GraphQLTypeVisitor... visitors)
        Called to visit a partially built schema (during GraphQLSchema 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 schema
        visitors - 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)