Package graphql.schema.diffing
Class SchemaGraphFactory
java.lang.Object
graphql.schema.diffing.SchemaGraphFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSchemaVertex
(SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
createAppliedDirectives
(Vertex from, List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph) createGraph
(GraphQLSchema schema) private String
private void
handleArgument
(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph) private void
handleDirective
(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
handleField
(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
handleInputField
(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
handleInputObject
(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
handleInterfaceVertex
(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
handleObjectVertex
(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private void
handleUnion
(Vertex unionVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) private Vertex
newArgument
(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode) private void
newDirective
(GraphQLDirective directive, SchemaGraph schemaGraph) private void
newEnum
(GraphQLEnumType enumType, SchemaGraph schemaGraph, boolean isIntrospectionNode) private Vertex
newField
(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode) private Vertex
newInputField
(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode) private void
newInputObject
(GraphQLInputObjectType inputObject, SchemaGraph schemaGraph, boolean isIntrospectionNode) private void
newInterface
(GraphQLInterfaceType interfaceType, SchemaGraph schemaGraph, boolean isIntrospectionNode) private void
newObject
(GraphQLObjectType graphQLObjectType, SchemaGraph schemaGraph, boolean isIntrospectionNode) private void
newScalar
(GraphQLScalarType scalarType, SchemaGraph schemaGraph, boolean isIntrospectionNode) private void
newUnion
(GraphQLUnionType unionType, SchemaGraph schemaGraph, boolean isIntrospectionNode)
-
Field Details
-
counter
private int counter -
debugPrefix
-
-
Constructor Details
-
SchemaGraphFactory
-
SchemaGraphFactory
public SchemaGraphFactory()
-
-
Method Details
-
createGraph
-
addSchemaVertex
-
handleInputObject
private void handleInputObject(Vertex inputObject, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) -
handleInputField
private void handleInputField(Vertex inputFieldVertex, GraphQLInputObjectField inputField, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) -
handleUnion
-
handleInterfaceVertex
private void handleInterfaceVertex(Vertex interfaceVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) -
handleObjectVertex
private void handleObjectVertex(Vertex objectVertex, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) -
handleField
private void handleField(Vertex fieldVertex, GraphQLFieldDefinition fieldDefinition, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) -
handleDirective
private void handleDirective(Vertex directive, SchemaGraph schemaGraph, GraphQLSchema graphQLSchema) -
handleArgument
private void handleArgument(Vertex argumentVertex, GraphQLArgument graphQLArgument, SchemaGraph schemaGraph) -
newObject
private void newObject(GraphQLObjectType graphQLObjectType, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newField
private Vertex newField(GraphQLFieldDefinition graphQLFieldDefinition, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newArgument
private Vertex newArgument(GraphQLArgument graphQLArgument, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newScalar
private void newScalar(GraphQLScalarType scalarType, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newInterface
private void newInterface(GraphQLInterfaceType interfaceType, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newEnum
private void newEnum(GraphQLEnumType enumType, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newUnion
private void newUnion(GraphQLUnionType unionType, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
newInputObject
private void newInputObject(GraphQLInputObjectType inputObject, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
createAppliedDirectives
private void createAppliedDirectives(Vertex from, List<GraphQLDirective> appliedDirectives, SchemaGraph schemaGraph) -
newDirective
-
newInputField
private Vertex newInputField(GraphQLInputObjectField inputField, SchemaGraph schemaGraph, boolean isIntrospectionNode) -
desc
-