Package graphql.schema.diff
Class SchemaDiff
- java.lang.Object
-
- graphql.schema.diff.SchemaDiff
-
@PublicSpi public class SchemaDiff extends java.lang.Object
The SchemaDiff is called with aDiffSet
and will report the differences in the graphql schema APIs by raising events to aDifferenceReporter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SchemaDiff.Options
Options for controlling the diffing process
-
Constructor Summary
Constructors Constructor Description SchemaDiff()
Constructs a differ using default optionsSchemaDiff(SchemaDiff.Options options)
Constructs a differ with the specified options
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
diffSchema(DiffSet diffSet, DifferenceReporter reporter)
This will perform a difference on the two schemas.
-
-
-
Constructor Detail
-
SchemaDiff
public SchemaDiff()
Constructs a differ using default options
-
SchemaDiff
public SchemaDiff(SchemaDiff.Options options)
Constructs a differ with the specified options- Parameters:
options
- the controlling options
-
-
Method Detail
-
diffSchema
public int diffSchema(DiffSet diffSet, DifferenceReporter reporter)
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
-
-