featureGate

Check whether a plan allows a feature before offering it, for the caller or for the owner of a project; returns allowed with the required tier, limit and current count, and a denied gate is a result, not an error.

Arguments

  • inputFeatureGateCheckInput!required

  • input.gateString!required

  • input.currentCountInt

  • input.projectReferenceString

    Optional 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.

Responses

query FeatureGate($input: FeatureGateCheckInput!) {  featureGate(input: $input) {    gate    allowed    requiredTier    limit    currentCount  }}
{  "data": {    "featureGate": {      "gate": "string",      "allowed": false,      "requiredTier": "string",      "limit": 0,      "currentCount": 0    }  }}

The FeatureGate! in data.featureGate.