Class GraphQLConfiguration

  • All Implemented Interfaces:
    io.micronaut.core.util.Toggleable

    @ConfigurationProperties("graphql")
    public class GraphQLConfiguration
    extends java.lang.Object
    implements io.micronaut.core.util.Toggleable
    Configuration properties for GraphQL.
    Since:
    1.0
    • Field Detail

      • PREFIX

        public static final java.lang.String PREFIX
        The prefix to use for all GraphQL configuration properties.
        See Also:
        Constant Field Values
      • ENABLED

        public static final java.lang.String ENABLED
        The configuration name whether GraphQL is enabled.
        See Also:
        Constant Field Values
      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        The default enabled value.
        See Also:
        Constant Field Values
      • PATH

        public static final java.lang.String PATH
        The configuration name of the GraphQL path.
        See Also:
        Constant Field Values
      • DEFAULT_PATH

        public static final java.lang.String DEFAULT_PATH
        The default GraphQL path.
        See Also:
        Constant Field Values
      • enabled

        protected boolean enabled
      • path

        protected java.lang.String path
    • Constructor Detail

      • GraphQLConfiguration

        public GraphQLConfiguration()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns whether GraphQL is enabled.
        Specified by:
        isEnabled in interface io.micronaut.core.util.Toggleable
        Returns:
        whether GraphQL is enabled
      • getPath

        public java.lang.String getPath()
        Returns the GraphQL path.
        Returns:
        the GraphQL path