Class GraphQLConfiguration
java.lang.Object
io.micronaut.configuration.graphql.GraphQLConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("graphql")
public class GraphQLConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Configuration properties for GraphQL.
- Since:
- 1.0
- Author:
- Marcel Overdijk, James Kleeh
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Configuration properties for GraphiQL. -
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enabled value.static final String
The default GraphQL path.protected boolean
static final String
The configuration name whether GraphQL is enabled.protected String
static final String
The configuration name of the GraphQL path.static final String
The prefix to use for all GraphQL configuration properties. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the GraphiQL configuration.getPath()
Returns the GraphQL path.boolean
Returns whether GraphQL is enabled.
-
Field Details
-
PREFIX
The prefix to use for all GraphQL configuration properties.- See Also:
-
ENABLED_CONFIG
The configuration name whether GraphQL is enabled.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value.- See Also:
-
PATH_CONFIG
The configuration name of the GraphQL path.- See Also:
-
DEFAULT_PATH
The default GraphQL path.- See Also:
-
enabled
protected boolean enabled -
path
-
graphiql
-
-
Constructor Details
-
GraphQLConfiguration
public GraphQLConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether GraphQL is enabled.- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- whether GraphQL is enabled
-
getPath
Returns the GraphQL path.- Returns:
- the GraphQL path
-
getGraphiql
Returns the GraphiQL configuration.- Returns:
- the GraphiQL configuration
-