Check feature gate

featureGate(input: FeatureGateCheckInput!): FeatureGate!

Arguments

ArgumentTypeRequired
inputFeatureGateCheckInput!Yes

Input fields

input

FeatureGateCheckInput

FieldTypeRequiredDescription
gateString!Yes
currentCountIntNo
projectReferenceStringNoOptional project ID or slug. When supplied for a gate other than projects, checks the project owner and requires project.read. The projects gate always checks the caller.

Response

Returns FeatureGate!. Open the type for its fields and nested types.

FieldTypeDescription
gateString!The gate that was checked.
allowedBoolean!
requiredTierString
limitFloat
currentCountFloat

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query FeatureGate($input: FeatureGateCheckInput!) {
  featureGate(input: $input) {
    allowed
    currentCount
    gate
    limit
    requiredTier
  }
}
json
{
  "input": {
    "gate": "custom_domains"
  }
}