Interface GraphQlSource
public interface GraphQlSource
Strategy to resolve a
GraphQL
and a GraphQLSchema
.
This contract also includes a GraphQlSource
builder encapsulating the
initialization of the GraphQL
instance and associated
GraphQLSchema
.
- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
GraphQlSource.Builder<B extends GraphQlSource.Builder<B>>
Common configuration options for allGraphQlSource
builders, independent of howGraphQLSchema
is created.static interface
GraphQlSource
builder that relies on parsing schema definition files and uses aRuntimeWiring
to create the underlyingGraphQLSchema
. -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQlSource.Builder<?>
builder
(GraphQLSchema schema) Return aGraphQlSource
builder that uses an externally preparedGraphQLSchema
.graphQl()
Return theGraphQL
to use.schema()
Return theGraphQLSchema
used by the currentGraphQL
.Return aGraphQlSource
builder that parses GraphQL Schema resources and usesRuntimeWiring
to create theGraphQLSchema
.
-
Method Details
-
graphQl
GraphQL graphQl()Return theGraphQL
to use. This can be a cached instance or a different one from time to time (e.g. based on a reloaded schema). -
schema
GraphQLSchema schema()Return theGraphQLSchema
used by the currentGraphQL
. -
schemaResourceBuilder
Return aGraphQlSource
builder that parses GraphQL Schema resources and usesRuntimeWiring
to create theGraphQLSchema
. -
builder
Return aGraphQlSource
builder that uses an externally preparedGraphQLSchema
.
-