public class SchemaGenerator
extends java.lang.Object
Constructor and Description |
---|
SchemaGenerator() |
Modifier and Type | Method and Description |
---|---|
GraphQLSchema |
makeExecutableSchema(TypeDefinitionRegistry typeRegistry,
RuntimeWiring wiring)
This will take a
TypeDefinitionRegistry and a RuntimeWiring and put them together to create a executable schema |
public GraphQLSchema makeExecutableSchema(TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring) throws SchemaProblem
TypeDefinitionRegistry
and a RuntimeWiring
and put them together to create a executable schematypeRegistry
- this can be obtained via SchemaParser.parse(String)
wiring
- this can be built using RuntimeWiring.newRuntimeWiring()
SchemaProblem
- if there are problems in assembling a schema such as missing type resolvers or no operations defined