Class SmallRyeGraphQLConfig
java.lang.Object
io.quarkus.smallrye.graphql.runtime.SmallRyeGraphQLConfig
@ConfigRoot(name="smallrye-graphql",
phase=BUILD_AND_RUN_TIME_FIXED)
public class SmallRyeGraphQLConfig
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionChange the type naming strategy.The default error message that will be used for hidden exception messages.List of extension fields that should be included in the error response.booleanEnable eventing.Excludes all the 'null' fields in the GraphQL response'sdatafield, except for the non-successfully resolved fields (errors).Additional scalars to register in the schema.Enable batch resolving for federation.Enable Apollo Federation.Set the Field visibility.List of Checked Exceptions class names that should hide the error message.Enable GET Requests.Enable 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.Enable metrics.Enable non-blocking support.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.Print the data fetcher exception to the log file.The rootPath under which queries will be served.booleanMake the schema available over HTTP.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.Enable tracing.SmallRye GraphQL UI configurationExceptions that should be unwrapped (class names).Subprotocols that should be supported by the server for graphql-over-websocket use cases. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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}`. -
federationEnabled
Enable Apollo Federation. If this value is unspecified, then federation will be enabled automatically if any GraphQL Federation annotations are detected in the application. -
federationBatchResolvingEnabled
@ConfigItem(name="federation.batch-resolving-enabled") public Optional<Boolean> federationBatchResolvingEnabledEnable batch resolving for federation. Disabled by default. -
metricsEnabled
Enable metrics. By default, this is false. If set to true, a metrics extension is required. -
tracingEnabled
Enable tracing. By default, this will be enabled if the tracing extension is added. -
eventsEnabled
Enable eventing. Allow you to receive events on bootstrap and execution. -
nonBlockingEnabled
Enable non-blocking support. Default is true. -
httpGetEnabled
Enable GET Requests. Allow queries via HTTP GET. -
httpPostQueryParametersEnabled
@ConfigItem(name="http.post.queryparameters.enabled") public Optional<Boolean> httpPostQueryParametersEnabledEnable Query parameter on POST Requests. Allow POST request to override or supply values in a query parameter. -
autoNameStrategy
Change the type naming strategy. All possible strategies are: default, merge-inner-class, full -
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
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" -
printDataFetcherException
Print the data fetcher exception to the log file. Default `true` in dev and test mode, default `false` in prod. -
schemaAvailable
Make the schema available over HTTP. -
schemaIncludeScalars
Include the Scalar definitions in the schema. -
schemaIncludeSchemaDefinition
Include the schema internal definition in the schema. -
schemaIncludeDirectives
Include Directives in the schema. -
schemaIncludeIntrospectionTypes
Include Introspection Types in the schema. -
logPayload
Log the payload (and optionally variables) to System out. -
fieldVisibility
Set the Field visibility. -
unwrapExceptions
Exceptions that should be unwrapped (class names). -
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. -
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
The maximum number of raw tokens the parser will accept, after which an exception will be thrown. Default to 15000 -
parserMaxWhitespaceTokens
The maximum number of raw whitespace tokens the parser will accept, after which an exception will be thrown. Default to 200000 -
instrumentationQueryComplexity
Abort a query if the total number of data fields queried exceeds the defined limit. Default to no limit -
instrumentationQueryDepth
Abort a query if the total depth of the query exceeds the defined limit. Default to no limit -
ui
SmallRye GraphQL UI configuration -
extraScalars
Additional scalars to register in the schema. These are taken from the `graphql-java-extended-scalars` library. -
excludeNullFieldsInResponses
Excludes all the 'null' fields in the GraphQL response'sdatafield, except for the non-successfully resolved fields (errors). Disabled by default.
-
-
Constructor Details
-
SmallRyeGraphQLConfig
public SmallRyeGraphQLConfig()
-