Skip to content
On this page

Environment Indicator (graphql_environment_indicator)

Adds support for the environment_indicator module.

Schema

Base

graphql
type ActiveEnvironment {
  # The name of the environment.
  name: String

  # The foreground color.
  fgColor: String

  # The background color.
  bgColor: String
}

Extension

graphql
extend type Query {
  activeEnvironment: ActiveEnvironment
}

Examples

graphql
query {
  activeEnvironment {
    name
    fgColor
    bgColor
  }
}
json
{
  "data": {
    "activeEnvironment": {
      "name": "LOCAL",
      "fgColor": "#ffffff",
      "bgColor": "#8618cb"
    }
  }
}