summaryrefslogtreecommitdiff
path: root/doc/development/graphql_guide/authorization.md
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
commitb76ae638462ab0f673e5915986070518dd3f9ad3 (patch)
treebdab0533383b52873be0ec0eb4d3c66598ff8b91 /doc/development/graphql_guide/authorization.md
parent434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff)
downloadgitlab-ce-14.2.0-rc42.tar.gz
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'doc/development/graphql_guide/authorization.md')
-rw-r--r--doc/development/graphql_guide/authorization.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/graphql_guide/authorization.md b/doc/development/graphql_guide/authorization.md
index a317b5d805b..d7edd01cda2 100644
--- a/doc/development/graphql_guide/authorization.md
+++ b/doc/development/graphql_guide/authorization.md
@@ -142,7 +142,7 @@ to view the `secretName` field:
```ruby
module Types
class ProjectType < BaseObject
- field :secret_name, ::GraphQL::STRING_TYPE, null: true, authorize: :owner_access
+ field :secret_name, ::GraphQL::Types::String, null: true, authorize: :owner_access
end
end
```
@@ -179,7 +179,7 @@ as an array instead of as a single value:
```ruby
module Types
class MyType < BaseObject
- field :hidden_field, ::GraphQL::INT_TYPE,
+ field :hidden_field, ::GraphQL::Types::Int,
null: true,
authorize: [:owner_access, :another_ability]
end