Netflix / dgs-framework

GraphQL for Java with Spring Boot made easy.
https://netflix.github.io/dgs
Apache License 2.0
3.03k stars 286 forks source link

Disable sdl comments in executable schema #1935

Closed kailyak closed 1 week ago

kailyak commented 3 weeks ago

Pull Request type

Changes in this PR

Added configuration option to toggle showing graphql SDL comments in introspection query results. This feature is only on spring-graphql version of dgs-framework.

By default, SDL comments are shown but are configurable in SchemaOptions.

Descriptions: https://spec.graphql.org/June2018/#sec-Descriptions SDL Comments: https://spec.graphql.org/June2018/#sec-Comments

Config option: dgs.graphql.introspection.show-sdl-comments: Boolean

Issue # 1031

Testing Done

Manual testing on dgs-spring-graphql sample app via toggling feature and running introspection query, added code tests.