Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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