Package graphql.schema.diff
Class SchemaDiffSet
java.lang.Object
graphql.schema.diff.SchemaDiffSet
Interface used to define 2 schemas that can be diffed by the 
SchemaDiff operation.- 
Method SummaryModifier and TypeMethodDescriptionstatic SchemaDiffSetdiffSetFromIntrospection(GraphQLSchema oldSchema, GraphQLSchema newSchema) Creates an schema diff set out of the result of 2 introspection queries.static SchemaDiffSetCreates an schema diff set out of the result of 2 introspection queries.static SchemaDiffSetdiffSetFromSdl(GraphQLSchema oldSchema, GraphQLSchema newSchema) Creates an schema diff set out of the two SDL definition Strings.static SchemaDiffSetdiffSetFromSdl(String oldSchemaSdl, String newSchemaSdl) Creates an schema diff set out of the two SDL definition Strings.boolean
- 
Method Details- 
getOldSchemaDefinitionDoc- Returns:
- Returns a IDL document that represents the old schema as part of a SchemaDiff operation.
 
- 
getNewSchemaDefinitionDoc- Returns:
- Returns a IDL document that represents the new schema created from the introspection result.
 
- 
supportsEnforcingDirectivespublic boolean supportsEnforcingDirectives()- Returns:
- Flag indicating whether this diffset implementation can be used to enforce directives when performing schema diff.
 
- 
diffSetFromIntrospectionpublic static SchemaDiffSet diffSetFromIntrospection(Map<String, Object> introspectionOld, Map<String, Object> introspectionNew) Creates an schema diff set out of the result of 2 introspection queries.- Parameters:
- introspectionOld- the older introspection query
- introspectionNew- the newer introspection query
- Returns:
- a diff set representing them which will not support enforcing directives.
 
- 
diffSetFromIntrospectionpublic static SchemaDiffSet diffSetFromIntrospection(GraphQLSchema oldSchema, GraphQLSchema newSchema) Creates an schema diff set out of the result of 2 introspection queries.- Parameters:
- oldSchema- the older GraphQLSchema object to introspect.
- newSchema- the new GraphQLSchema object to introspect.
- Returns:
- a diff set representing them which will not support enforcing directives.
 
- 
diffSetFromSdlCreates an schema diff set out of the two SDL definition Strings.- Parameters:
- oldSchemaSdl- the older SDL definition String.
- newSchemaSdl- the newer SDL definition String.
- Returns:
- a diff set representing them which will support enforcing directives.
 
- 
diffSetFromSdlCreates an schema diff set out of the two SDL definition Strings.- Parameters:
- oldSchema- the older SDL definition String.
- newSchema- the newer SDL definition String.
- Returns:
- a diff set representing them which will support enforcing directives.
 
 
-