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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGraphQlSource.Builder<B extends GraphQlSource.Builder<B>>Common configuration options for allGraphQlSourcebuilders, independent of howGraphQLSchemais created.static interfaceGraphQlSourcebuilder that relies on parsing schema definition files and uses aRuntimeWiringto create the underlyingGraphQLSchema. -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQlSource.Builder<?>builder(GraphQLSchema schema) Return aGraphQlSourcebuilder that uses an externally preparedGraphQLSchema.graphQl()Return theGraphQLto use.schema()Return theGraphQLSchemaused by the currentGraphQL.Return aGraphQlSourcebuilder that parses GraphQL Schema resources and usesRuntimeWiringto create theGraphQLSchema.
-
Method Details
-
graphQl
GraphQL graphQl()Return theGraphQLto 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 theGraphQLSchemaused by the currentGraphQL. -
schemaResourceBuilder
Return aGraphQlSourcebuilder that parses GraphQL Schema resources and usesRuntimeWiringto create theGraphQLSchema. -
builder
Return aGraphQlSourcebuilder that uses an externally preparedGraphQLSchema.- Parameters:
schema- the GraphQL schema
-