Class SmallRyeGraphQLConfig

    • Field Detail

      • rootPath

        @ConfigItem(defaultValue="graphql")
        public String rootPath
        The rootPath under which queries will be served. Default to graphql By default, this value will be resolved as a path relative to `${quarkus.http.root-path}`.
      • metricsEnabled

        @ConfigItem(name="metrics.enabled")
        public Optional<Boolean> metricsEnabled
        Enable metrics. By default this is false. If set to true, a metrics extension is required.
      • tracingEnabled

        @ConfigItem(name="tracing.enabled")
        public Optional<Boolean> tracingEnabled
        Enable tracing. By default this will be enabled if the tracing extension is added.
      • validationEnabled

        @ConfigItem(name="validation.enabled")
        public Optional<Boolean> validationEnabled
        Enable validation. By default this will be enabled if the Hibernate Validator extension is added.
      • eventsEnabled

        @ConfigItem(name="events.enabled",
                    defaultValue="false")
        public boolean eventsEnabled
        Enable eventing. Allow you to receive events on bootstrap and execution.
      • nonBlockingEnabled

        @ConfigItem(name="nonblocking.enabled")
        public Optional<Boolean> nonBlockingEnabled
        Enable non-blocking support. Default is true.
      • httpPostQueryParametersEnabled

        @ConfigItem(name="http.post.queryparameters.enabled")
        public Optional<Boolean> httpPostQueryParametersEnabled
        Enable Query parameter on POST Requests. Allow POST request to override or supply values in a query parameter.
      • autoNameStrategy

        @ConfigItem(defaultValue="Default")
        public io.smallrye.graphql.schema.helper.TypeAutoNameStrategy autoNameStrategy
        Change the type naming strategy.
      • errorExtensionFields

        @ConfigItem
        public Optional<List<String>> errorExtensionFields
        List of extension fields that should be included in the error response. By default none will be included. Examples of valid values include [exception,classification,code,description,validationErrorType,queryPath]
      • 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.
      • defaultErrorMessage

        @ConfigItem
        public Optional<String> defaultErrorMessage
        The default error message that will be used for hidden exception messages. Defaults to "Server Error"
      • printDataFetcherException

        @ConfigItem
        public Optional<Boolean> printDataFetcherException
        Print the data fetcher exception to the log file. Default `true` in dev and test mode, default `false` in prod.
      • schemaAvailable

        @ConfigItem(defaultValue="true")
        public boolean schemaAvailable
        Make the schema available over HTTP.
      • schemaIncludeScalars

        @ConfigItem(defaultValue="false")
        public boolean schemaIncludeScalars
        Include the Scalar definitions in the schema.
      • schemaIncludeSchemaDefinition

        @ConfigItem(defaultValue="false")
        public boolean schemaIncludeSchemaDefinition
        Include the schema internal definition in the schema.
      • schemaIncludeDirectives

        @ConfigItem(defaultValue="false")
        public boolean schemaIncludeDirectives
        Include Directives in the schema.
      • schemaIncludeIntrospectionTypes

        @ConfigItem(defaultValue="false")
        public boolean schemaIncludeIntrospectionTypes
        Include Introspection Types in the schema.
      • logPayload

        @ConfigItem(defaultValue="off")
        public io.smallrye.graphql.spi.config.LogPayloadOption logPayload
        Log the payload (and optionally variables) to System out.
      • websocketSubprotocols

        @ConfigItem
        public Optional<List<String>> websocketSubprotocols
        Subprotocols that should be supported by the server for graphql-over-websocket use cases. Allowed subprotocols are "graphql-ws" and "graphql-transport-ws". By default, both are enabled.
    • Constructor Detail

      • SmallRyeGraphQLConfig

        public SmallRyeGraphQLConfig()