Skip to main content

myFeatureFlags

Check which feature flags are enabled for the current authenticated user. This query provides a simple way for users to check their access to specific features without exposing sensitive configuration details.

Authentication Requirements

  • Requires authentication (login required)
  • No special permissions needed - available to all authenticated users

Business Rules

Feature flags are evaluated across multiple actors. Returns true if ANY of the following conditions are met:

  • Flag is enabled for the current company (from X-Company-Id header)

  • Flag is enabled for the current brand (from X-Brand-Id header)

  • Flag is enabled for the authenticated user's party

  • Returns false for non-existent flags (fail-safe approach)

  • Evaluates all gate types (boolean, actors, percentage) automatically

Error Conditions

  • You must be logged in to access this resource - If not authenticated
  • No error for non-existent flags (returns enabled: false)
myFeatureFlags(
keys: [String!]!
): [FeatureFlagEnabled!]!

Arguments

myFeatureFlags.keys ● [String!]! non-null scalar

List of feature flag keys to check

Type

FeatureFlagEnabled object