diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 12:08:08 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 12:08:08 +0000 |
commit | f1e2fca19a90a6992c2020cf8c2159cfb0b61bca (patch) | |
tree | c084a29873f0fe6ff42555c590da6a9d8527df91 /doc/development/api_graphql_styleguide.md | |
parent | 87ef501eacd66d7166183d20d84e33de022f7002 (diff) | |
download | gitlab-ce-f1e2fca19a90a6992c2020cf8c2159cfb0b61bca.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/api_graphql_styleguide.md')
-rw-r--r-- | doc/development/api_graphql_styleguide.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/development/api_graphql_styleguide.md b/doc/development/api_graphql_styleguide.md index 96b256dc022..6d9d375166b 100644 --- a/doc/development/api_graphql_styleguide.md +++ b/doc/development/api_graphql_styleguide.md @@ -261,7 +261,7 @@ the field depending on if the feature has been enabled or not. GraphQL feature flags use the common [GitLab feature flag](../development/feature_flags.md) system, and can be added to a -field using the `feature_key` property. +field using the `feature_flag` property. For example: @@ -269,11 +269,11 @@ For example: field :test_field, type: GraphQL::STRING_TYPE, null: false, description: 'Some test field', - feature_key: :some_feature_key + feature_flag: :some_feature_flag ``` In the above example, the `test_field` field will only be returned if -the `some_feature_key` feature flag is enabled. +the `some_feature_flag` feature flag is enabled. If the feature flag is not enabled, an error will be returned saying the field does not exist. |