summaryrefslogtreecommitdiff
path: root/app/graphql/types/snippet_type.rb
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 /app/graphql/types/snippet_type.rb
parent434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff)
downloadgitlab-ce-b76ae638462ab0f673e5915986070518dd3f9ad3.tar.gz
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'app/graphql/types/snippet_type.rb')
-rw-r--r--app/graphql/types/snippet_type.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/graphql/types/snippet_type.rb b/app/graphql/types/snippet_type.rb
index 7606bdbc46d..c345aea08bd 100644
--- a/app/graphql/types/snippet_type.rb
+++ b/app/graphql/types/snippet_type.rb
@@ -17,7 +17,7 @@ module Types
description: 'ID of the snippet.',
null: false
- field :title, GraphQL::STRING_TYPE,
+ field :title, GraphQL::Types::String,
description: 'Title of the snippet.',
null: false
@@ -33,11 +33,11 @@ module Types
description: 'The owner of the snippet.',
null: true
- field :file_name, GraphQL::STRING_TYPE,
+ field :file_name, GraphQL::Types::String,
description: 'File Name of the snippet.',
null: true
- field :description, GraphQL::STRING_TYPE,
+ field :description, GraphQL::Types::String,
description: 'Description of the snippet.',
null: true
@@ -53,11 +53,11 @@ module Types
description: 'Timestamp this snippet was updated.',
null: false
- field :web_url, type: GraphQL::STRING_TYPE,
+ field :web_url, type: GraphQL::Types::String,
description: 'Web URL of the snippet.',
null: false
- field :raw_url, type: GraphQL::STRING_TYPE,
+ field :raw_url, type: GraphQL::Types::String,
description: 'Raw URL of the snippet.',
null: false
@@ -67,12 +67,12 @@ module Types
null: true,
resolver: Resolvers::Snippets::BlobsResolver
- field :ssh_url_to_repo, type: GraphQL::STRING_TYPE,
+ field :ssh_url_to_repo, type: GraphQL::Types::String,
description: 'SSH URL to the snippet repository.',
calls_gitaly: true,
null: true
- field :http_url_to_repo, type: GraphQL::STRING_TYPE,
+ field :http_url_to_repo, type: GraphQL::Types::String,
description: 'HTTP URL to the snippet repository.',
calls_gitaly: true,
null: true