Skip to content

Add configuration property for GraphQL Schema Mapping Inspection #36252

Closed
@hansdesmet

Description

@hansdesmet

In Spring GraphQL you can do schema mapping inspection:
https://docs.spring.io/spring-graphql/docs/current/reference/html/#execution.graphqlsource.schema-mapping-inspection

I have to write some Java code myself to enable this:

GraphQlSource.Builder builder = ...

builder.schemaResources(..)
        .inspectSchemaMappings(report -> {
            logger.debug(report);
        })

Could you add a setting to application.properties which does this for me, for example:
spring.graphql.schema.mapping.inspection=debug
In this setting debug refers to logger.debug(.
It coud also be none (default), info, error.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions