-
- All Implemented Interfaces:
@Configuration()@Import(value = {NonFederatedSchemaAutoConfiguration.class, FederatedSchemaAutoConfiguration.class}) public final class GraphQLSchemaConfiguration
Configuration class that loads both the federated and non-federation configuration and creates the GraphQL schema object and request handler.
This config can then be used by all Spring specific configuration classes to handle incoming requests from HTTP routes or subscriptions and send them to the schema object.
-
-
Constructor Summary
Constructors Constructor Description GraphQLSchemaConfiguration()
-
Method Summary
Modifier and Type Method Description final GraphQL
graphQL(GraphQLSchema schema, DataFetcherExceptionHandler dataFetcherExceptionHandler, Optional<List<Instrumentation>> providedInstrumentations, Optional<ExecutionIdProvider> executionIdProvider, Optional<PreparsedDocumentProvider> preparsedDocumentProvider, GraphQLConfigurationProperties config, IDValueUnboxer idValueUnboxer)
final AutomaticPersistedQueriesProvider
preparsedDocumentProvider(Optional<AutomaticPersistedQueriesCache> providedPersistedQueriesCache)
final IDValueUnboxer
idValueUnboxer()
final SpringGraphQLRequestParser
springGraphQLRequestParser(ObjectMapper objectMapper)
final SpringGraphQLContextFactory<?>
springGraphQLContextFactory()
final GraphQLRequestHandler
graphQLRequestHandler(GraphQL graphql, KotlinDataLoaderRegistryFactory dataLoaderRegistryFactory)
final SpringGraphQLServer
springGraphQLServer(SpringGraphQLRequestParser requestParser, SpringGraphQLContextFactory<?> contextFactory, GraphQLRequestHandler requestHandler)
-
-
Method Detail
-
graphQL
@Bean()@ConditionalOnMissingBean() final GraphQL graphQL(GraphQLSchema schema, DataFetcherExceptionHandler dataFetcherExceptionHandler, Optional<List<Instrumentation>> providedInstrumentations, Optional<ExecutionIdProvider> executionIdProvider, Optional<PreparsedDocumentProvider> preparsedDocumentProvider, GraphQLConfigurationProperties config, IDValueUnboxer idValueUnboxer)
-
preparsedDocumentProvider
@Bean()@ConditionalOnProperty(name = {"graphql.automaticPersistedQueries.enabled"}, havingValue = "true") final AutomaticPersistedQueriesProvider preparsedDocumentProvider(Optional<AutomaticPersistedQueriesCache> providedPersistedQueriesCache)
-
idValueUnboxer
@Bean()@ConditionalOnMissingBean() final IDValueUnboxer idValueUnboxer()
-
springGraphQLRequestParser
@Bean()@ConditionalOnMissingBean() final SpringGraphQLRequestParser springGraphQLRequestParser(ObjectMapper objectMapper)
-
springGraphQLContextFactory
@Bean()@ConditionalOnMissingBean() final SpringGraphQLContextFactory<?> springGraphQLContextFactory()
-
graphQLRequestHandler
@Bean()@ConditionalOnMissingBean() final GraphQLRequestHandler graphQLRequestHandler(GraphQL graphql, KotlinDataLoaderRegistryFactory dataLoaderRegistryFactory)
-
springGraphQLServer
@Bean()@ConditionalOnMissingBean() final SpringGraphQLServer springGraphQLServer(SpringGraphQLRequestParser requestParser, SpringGraphQLContextFactory<?> contextFactory, GraphQLRequestHandler requestHandler)
-
-
-
-