Package graphql.schema.diff
Class SchemaDiff
java.lang.Object
graphql.schema.diff.SchemaDiff
The SchemaDiff is called with a
DiffSet
and will report the
differences in the graphql schema APIs by raising events to a
DifferenceReporter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Options for controlling the diffing process -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a differ using default optionsSchemaDiff
(SchemaDiff.Options options) Constructs a differ with the specified options -
Method Summary
Modifier and TypeMethodDescriptionint
diffSchema
(DiffSet diffSet, DifferenceReporter reporter) Deprecated.int
diffSchema
(SchemaDiffSet schemaDiffSet, DifferenceReporter reporter) This will perform a difference on the two schemas.
-
Constructor Details
-
SchemaDiff
public SchemaDiff()Constructs a differ using default options -
SchemaDiff
Constructs a differ with the specified options- Parameters:
options
- the controlling options
-
-
Method Details
-
diffSchema
Deprecated.This will perform a difference on the two schemas. The reporter callback interface will be called when differences are encountered.- Parameters:
diffSet
- the two schemas to compare for differencereporter
- the place to report difference events to- Returns:
- the number of API breaking changes
-
diffSchema
This will perform a difference on the two schemas. The reporter callback interface will be called when differences are encountered.- Parameters:
schemaDiffSet
- the two schemas to compare for differencereporter
- the place to report difference events to- Returns:
- the number of API breaking changes
-