Uses of Interface
org.springframework.graphql.execution.SchemaMappingInspector.Initializer
Package
Description
Support for GraphQL request execution, including abstractions to configure and invoke
GraphQL
.-
Uses of SchemaMappingInspector.Initializer in org.springframework.graphql.execution
Modifier and TypeMethodDescriptionSchemaMappingInspector.Initializer.classMapping
(String graphQlTypeName, Class<?>... aClass) Provide an explicit mapping between a GraphQL type name and the Java class(es) that represent it at runtime to help inspect union member and interface implementation types when those associations cannot be discovered otherwise.SchemaMappingInspector.Initializer.classNameFunction
(Function<GraphQLObjectType, String> function) Help to derive thesimple class name
for the Java representation of a GraphQL union member or interface implementing type.SchemaMappingInspector.Initializer.classResolver
(SchemaMappingInspector.ClassResolver resolver) Alternative toclassMapping(String, Class[])
with a customSchemaMappingInspector.ClassResolver
to find the Java class(es) for a GraphQL union member or interface implementation type.SchemaMappingInspector.initializer()
Return an initializer to configure theSchemaMappingInspector
and perform the inspection.Modifier and TypeMethodDescriptionGraphQlSource.SchemaResourceBuilder.inspectSchemaMappings
(Consumer<SchemaMappingInspector.Initializer> initializerConsumer, Consumer<SchemaReport> reportConsumer) Variant ofGraphQlSource.SchemaResourceBuilder.inspectSchemaMappings(Consumer)
with the option to initialize theSchemaMappingInspector
, e.g.