Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8c725cd7
Commit
8c725cd7
authored
Feb 29, 2020
by
Avielle Wolfe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GraphQL feature flag docs
The key is named `feature_flag`, not `feature_key`.
parent
fecff5e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/development/api_graphql_styleguide.md
doc/development/api_graphql_styleguide.md
+3
-3
No files found.
doc/development/api_graphql_styleguide.md
View file @
8c725cd7
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment