Interface SmallRyeGraphQLRuntimeConfig
@ConfigRoot(phase=RUN_TIME)
@ConfigMapping(prefix="quarkus.smallrye-graphql")
public interface SmallRyeGraphQLRuntimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe default error message that will be used for hidden exception messages.enable()Deprecated, for removal: This API element is subject to removal in a future version.booleanenabled()If GraphQL UI should be enabled.List of extension fields that should be included in the error response.Excludes all the 'null' fields in the GraphQL response'sdatafield, except for the non-successfully resolved fields (errors).Specifies the field visibility for the GraphQL schema.List of Checked Exceptions class names that should hide the error message.booleanEnable GET Requests.booleanEnable Query parameter on POST Requests.Abort a query if the total number of data fields queried exceeds the defined limit.Abort a query if the total depth of the query exceeds the defined limit.io.smallrye.graphql.spi.config.LogPayloadOptionLog the payload (and optionally variables) to System out.Set to true if ignored chars should be captured as AST nodes.Set to true if `graphql.language.Comment`s should be captured as AST nodesSet to true true if `graphql.language.SourceLocation`s should be captured as AST nodes.The maximum number of raw tokens the parser will accept, after which an exception will be thrown.The maximum number of raw whitespace tokens the parser will accept, after which an exception will be thrown.booleanInclude Directives in the schema.booleanInclude Introspection Types in the schema.booleanInclude the Scalar definitions in the schema.booleanInclude the schema internal definition in the schema.List of Runtime Exceptions class names that should show the error message.Exceptions that should be unwrapped (class names).
-
Method Details
-
enabled
@WithName("ui.enabled") @WithDefault("true") boolean enabled()If GraphQL UI should be enabled. By default, GraphQL UI is enabled if it is included (seealways-include). -
enable
Deprecated, for removal: This API element is subject to removal in a future version.usequarkus.smallrye-graphql.ui.enabledinsteadIf GraphQL UI should be enabled. By default, GraphQL UI is enabled if it is included (seealways-include). -
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 valueno-introspectionwill disable introspection fields. For more info see graphql-java documentation -
excludeNullFieldsInResponses
Excludes all the 'null' fields in the GraphQL response'sdatafield, except for the non-successfully resolved fields (errors). Disabled by default. -
unwrapExceptions
Exceptions that should be unwrapped (class names). -
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
List of Checked Exceptions class names that should hide the error message. By default, Checked Exception messages will show the exception message. -
defaultErrorMessage
The default error message that will be used for hidden exception messages. Defaults to "Server Error" -
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] -
httpGetEnabled
@WithName("http.get.enabled") @WithDefault("false") boolean httpGetEnabled()Enable GET Requests. Allow queries via HTTP GET. -
httpPostQueryParametersEnabled
@WithName("http.post.queryparameters.enabled") @WithDefault("false") boolean httpPostQueryParametersEnabled()Enable Query parameter on POST Requests. Allow POST request to override or supply values in a query parameter. -
schemaIncludeScalars
@WithDefault("false") boolean schemaIncludeScalars()Include the Scalar definitions in the schema. -
schemaIncludeSchemaDefinition
@WithDefault("false") boolean schemaIncludeSchemaDefinition()Include the schema internal definition in the schema. -
schemaIncludeDirectives
@WithDefault("false") boolean schemaIncludeDirectives()Include Directives in the schema. -
schemaIncludeIntrospectionTypes
@WithDefault("false") boolean schemaIncludeIntrospectionTypes()Include Introspection Types in the schema. -
logPayload
@WithDefault("off") io.smallrye.graphql.spi.config.LogPayloadOption logPayload()Log the payload (and optionally variables) to System out. -
parserCaptureIgnoredChars
Set to true if ignored chars should be captured as AST nodes. Default to false -
parserCaptureLineComments
Set to true if `graphql.language.Comment`s should be captured as AST nodes -
parserCaptureSourceLocation
Set to true true if `graphql.language.SourceLocation`s should be captured as AST nodes. Default to true -
parserMaxTokens
OptionalInt parserMaxTokens()The maximum number of raw tokens the parser will accept, after which an exception will be thrown. Default to 15000 -
parserMaxWhitespaceTokens
OptionalInt parserMaxWhitespaceTokens()The maximum number of raw whitespace tokens the parser will accept, after which an exception will be thrown. Default to 200000 -
instrumentationQueryComplexity
OptionalInt instrumentationQueryComplexity()Abort a query if the total number of data fields queried exceeds the defined limit. Default to no limit -
instrumentationQueryDepth
OptionalInt instrumentationQueryDepth()Abort a query if the total depth of the query exceeds the defined limit. Default to no limit
-
quarkus.smallrye-graphql.ui.enabledinstead