Commit ef05cc7c authored by Nick Thomas's avatar Nick Thomas

Merge branch 'nfriend-fix-graphql-feature-flag-example' into 'master'

Reverse condition in GraphQL feature flag docs

See merge request gitlab-org/gitlab!47838
parents c9c12719 729be0fd
......@@ -397,7 +397,7 @@ field :foo, GraphQL::STRING_TYPE,
'if `my_feature_flag` feature flag is disabled'
def foo
object.foo unless Feature.enabled?(:my_feature_flag, object)
object.foo if Feature.enabled?(:my_feature_flag, object)
end
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment