Class SmallRyeGraphQLRuntimeConfig

java.lang.Object
io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLRuntimeConfig

@ConfigRoot(name="smallrye-graphql", phase=RUN_TIME) public class SmallRyeGraphQLRuntimeConfig extends Object
  • Field Details

    • enable

      @ConfigItem(name="ui.enable", defaultValue="true") boolean enable
      If GraphQL UI should be enabled. By default, GraphQL UI is enabled if it is included (see always-include).
    • fieldVisibility

      @ConfigItem(defaultValue="default") public String fieldVisibility
      Specifies the field visibility for the GraphQL schema. This configuration item allows you to define comma-separated list of patterns (GraphQLType.GraphQLField). These patterns are used to determine which fields should be excluded from the schema. Special value no-introspection will disable introspection fields. For more info see graphql-java documentation
    • excludeNullFieldsInResponses

      @ConfigItem public Optional<Boolean> excludeNullFieldsInResponses
      Excludes all the 'null' fields in the GraphQL response's data field, except for the non-successfully resolved fields (errors). Disabled by default.
    • showRuntimeExceptionMessage

      @ConfigItem public Optional<List<String>> showRuntimeExceptionMessage
      List of Runtime Exceptions class names that should show the error message. By default, Runtime Exception messages will be hidden and a generic `Server Error` message will be returned.
    • hideCheckedExceptionMessage

      @ConfigItem public Optional<List<String>> hideCheckedExceptionMessage
      List of Checked Exceptions class names that should hide the error message. By default, Checked Exception messages will show the exception message.
  • Constructor Details

    • SmallRyeGraphQLRuntimeConfig

      public SmallRyeGraphQLRuntimeConfig()