Uses of Interface
org.springframework.graphql.execution.GraphQlSource.SchemaResourceBuilder
Package
Description
Support for GraphQL request execution, including abstractions to configure and invoke
GraphQL
.-
Uses of GraphQlSource.SchemaResourceBuilder in org.springframework.graphql.execution
Modifier and TypeMethodDescriptionGraphQlSource.SchemaResourceBuilder.configureRuntimeWiring
(RuntimeWiringConfigurer configurer) Configure the underlyingRuntimeWiring.Builder
to register data fetchers, custom scalar types, type resolvers, and more.GraphQlSource.SchemaResourceBuilder.configureTypeDefinitions
(TypeDefinitionConfigurer configurer) Customize theTypeDefinitionRegistry
created from parsed schema files, adding or changing schema type definitions before theGraphQLSchema
is created and validated.GraphQlSource.SchemaResourceBuilder.defaultTypeResolver
(TypeResolver typeResolver) Configure the defaultTypeResolver
to use for GraphQL interface and union types that don't have such a registration afterapplying
RuntimeWiringConfigurer
s.GraphQlSource.SchemaResourceBuilder.inspectSchemaMappings
(Consumer<SchemaMappingInspector.Initializer> initializerConsumer, Consumer<SchemaReport> reportConsumer) Variant ofinspectSchemaMappings(Consumer)
with the option to initialize theSchemaMappingInspector
, e.g.GraphQlSource.SchemaResourceBuilder.inspectSchemaMappings
(Consumer<SchemaReport> reportConsumer) Enable inspection of schema mappings to find unmapped fields and unmappedDataFetcher
registrations.GraphQlSource.SchemaResourceBuilder.schemaFactory
(BiFunction<TypeDefinitionRegistry, RuntimeWiring, GraphQLSchema> schemaFactory) Configure a function to create theGraphQLSchema
from the givenTypeDefinitionRegistry
andRuntimeWiring
.GraphQlSource.schemaResourceBuilder()
Return aGraphQlSource
builder that parses GraphQL Schema resources and usesRuntimeWiring
to create theGraphQLSchema
.GraphQlSource.SchemaResourceBuilder.schemaResources
(Resource... resources)