public interface GraphQlSource
GraphQL
and a GraphQLSchema
.
This contract also includes a GraphQlSource
builder encapsulating the
initialization of the GraphQL
instance and associated
GraphQLSchema
.
Modifier and Type | Interface and Description |
---|---|
static interface |
GraphQlSource.Builder<B extends GraphQlSource.Builder<B>>
Common configuration options for all
GraphQlSource builders,
independent of how GraphQLSchema is created. |
static interface |
GraphQlSource.SchemaResourceBuilder
GraphQlSource builder that relies on parsing schema definition
files and uses a RuntimeWiring to create the underlying
GraphQLSchema . |
Modifier and Type | Method and Description |
---|---|
static GraphQlSource.Builder<?> |
builder(GraphQLSchema schema)
Return a
GraphQlSource builder that uses an externally prepared
GraphQLSchema . |
GraphQL |
graphQl()
Return the
GraphQL to use. |
GraphQLSchema |
schema()
Return the
GraphQLSchema used by the current GraphQL . |
static GraphQlSource.SchemaResourceBuilder |
schemaResourceBuilder()
Return a
GraphQlSource builder that parses GraphQL Schema
resources and uses RuntimeWiring to create the
GraphQLSchema . |
GraphQL graphQl()
GraphQL
to use. This can be a cached instance or a
different one from time to time (e.g. based on a reloaded schema).GraphQLSchema schema()
GraphQLSchema
used by the current GraphQL
.static GraphQlSource.SchemaResourceBuilder schemaResourceBuilder()
GraphQlSource
builder that parses GraphQL Schema
resources and uses RuntimeWiring
to create the
GraphQLSchema
.static GraphQlSource.Builder<?> builder(GraphQLSchema schema)
GraphQlSource
builder that uses an externally prepared
GraphQLSchema
.