Enable Feature Flag - WunderGraph

Description

Enable (activate) an existing feature flag within the specified namespace (or the “default” namespace if unspecified). A feature flag is a group of one or more feature subgraphs. Each feature subgraph represents a replacement of a specific base subgraph that composes a federated graph.

Minimum Requirements

Package Minimum version
wgc 0.58.0
router 0.95.0

Usage

If feature-flag enable is used when the feature flag is already enabled, no changes (nor errors) will occur.

wgc feature-flag enable my-flag

The alias for feature-flag is ff. Note that unless specified by the --namespace parameter, the namespace will be automatically passed as “default”.

If either the base composition (the federated graph with the original subgraphs) or the feature flag composition fail, the router execution config will not be updated with the feature flag configuration.

Parameters

Options

Examples

Enable the existing feature flag “my-flag” in the namespace “prod”:

wgc feature-flag enable my-flag -n prod