Class SchemaMappingInspector

java.lang.Object
org.springframework.graphql.execution.SchemaMappingInspector

public final class SchemaMappingInspector extends Object
Inspect schema mappings on startup to ensure the following:
  • Schema fields have either a DataFetcher registration or a corresponding Class property.
  • DataFetcher registrations refer to a schema field that exists.
  • DataFetcher arguments have matching schema field arguments.

Use methods of GraphQlSource.SchemaResourceBuilder to enable schema inspection on startup. For all other cases, use initializer() as a starting point or the shortcut inspect(GraphQLSchema, Map).

Since:
1.2.0
Author:
Brian Clozel, Rossen Stoyanchev