public class SchemaParserBuilder
Constructor and Description |
---|
SchemaParserBuilder(SchemaParserDictionary dictionary) |
SchemaParserBuilder() |
Modifier and Type | Method and Description |
---|---|
SchemaParser |
build()
Build the parser with the supplied schema and dictionary.
|
NonExistentClass |
dictionary(java.lang.String name,
java.lang.Class<?> clazz)
Add arbitrary classes to the parsers dictionary, overriding the generated type name.
|
NonExistentClass |
dictionary(java.util.Map<java.lang.String,? extends java.lang.Class<?>> dictionary)
Add arbitrary classes to the parsers dictionary, overriding the generated type name.
|
NonExistentClass |
dictionary(java.lang.Class<?> clazz)
Add arbitrary classes to the parsers dictionary.
|
NonExistentClass |
dictionary(java.lang.Class dictionary)
Add arbitrary classes to the parsers dictionary.
|
NonExistentClass |
dictionary(java.util.List<? extends java.lang.Class<?>> dictionary)
Add arbitrary classes to the parsers dictionary.
|
NonExistentClass |
file(java.lang.String filename)
Add a GraphQL Schema file from the classpath.
|
NonExistentClass |
files(java.lang.String files)
Add GraphQL schema files from the classpath.
|
NonExistentClass |
resolvers(com.coxautodev.graphql.tools.GraphQLResolver resolvers)
Add GraphQLResolvers to the parsers dictionary.
|
NonExistentClass |
resolvers(java.util.List<? extends com.coxautodev.graphql.tools.GraphQLResolver<?>> resolvers)
Add GraphQLResolvers to the parsers dictionary.
|
NonExistentClass |
scalars(graphql.schema.GraphQLScalarType scalars)
Add scalars to the parsers dictionary.
|
NonExistentClass |
schemaString(java.lang.String string)
Add a GraphQL schema string directly.
|
public SchemaParserBuilder(SchemaParserDictionary dictionary)
public SchemaParserBuilder()
public NonExistentClass files(java.lang.String files)
Add GraphQL schema files from the classpath.
public NonExistentClass file(java.lang.String filename)
Add a GraphQL Schema file from the classpath.
public NonExistentClass schemaString(java.lang.String string)
Add a GraphQL schema string directly.
public NonExistentClass resolvers(com.coxautodev.graphql.tools.GraphQLResolver resolvers)
Add GraphQLResolvers to the parsers dictionary.
public NonExistentClass resolvers(java.util.List<? extends com.coxautodev.graphql.tools.GraphQLResolver<?>> resolvers)
Add GraphQLResolvers to the parsers dictionary.
public NonExistentClass scalars(graphql.schema.GraphQLScalarType scalars)
Add scalars to the parsers dictionary.
public NonExistentClass dictionary(java.lang.String name, java.lang.Class<?> clazz)
Add arbitrary classes to the parsers dictionary, overriding the generated type name.
public NonExistentClass dictionary(java.util.Map<java.lang.String,? extends java.lang.Class<?>> dictionary)
Add arbitrary classes to the parsers dictionary, overriding the generated type name.
public NonExistentClass dictionary(java.lang.Class<?> clazz)
Add arbitrary classes to the parsers dictionary.
public NonExistentClass dictionary(java.lang.Class dictionary)
Add arbitrary classes to the parsers dictionary.
public NonExistentClass dictionary(java.util.List<? extends java.lang.Class<?>> dictionary)
Add arbitrary classes to the parsers dictionary.
public SchemaParser build()
Build the parser with the supplied schema and dictionary.