Commit 53dbc6bd authored by fjsanpedro's avatar fjsanpedro

Add type annotation for snippet resolvers

parent c18146f4
...@@ -57,10 +57,7 @@ Graphql/ResolverType: ...@@ -57,10 +57,7 @@ Graphql/ResolverType:
- 'app/graphql/resolvers/project_merge_requests_resolver.rb' - 'app/graphql/resolvers/project_merge_requests_resolver.rb'
- 'app/graphql/resolvers/project_milestones_resolver.rb' - 'app/graphql/resolvers/project_milestones_resolver.rb'
- 'app/graphql/resolvers/project_pipelines_resolver.rb' - 'app/graphql/resolvers/project_pipelines_resolver.rb'
- 'app/graphql/resolvers/projects/snippets_resolver.rb'
- 'app/graphql/resolvers/snippets_resolver.rb'
- 'app/graphql/resolvers/users/group_count_resolver.rb' - 'app/graphql/resolvers/users/group_count_resolver.rb'
- 'app/graphql/resolvers/users/snippets_resolver.rb'
- 'ee/app/graphql/resolvers/ci/jobs_resolver.rb' - 'ee/app/graphql/resolvers/ci/jobs_resolver.rb'
- 'ee/app/graphql/resolvers/geo/merge_request_diff_registries_resolver.rb' - 'ee/app/graphql/resolvers/geo/merge_request_diff_registries_resolver.rb'
- 'ee/app/graphql/resolvers/geo/package_file_registries_resolver.rb' - 'ee/app/graphql/resolvers/geo/package_file_registries_resolver.rb'
......
...@@ -4,7 +4,7 @@ module ResolvesSnippets ...@@ -4,7 +4,7 @@ module ResolvesSnippets
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
type Types::SnippetType, null: false type Types::SnippetType.connection_type, null: false
argument :ids, [::Types::GlobalIDType[::Snippet]], argument :ids, [::Types::GlobalIDType[::Snippet]],
required: false, required: false,
......
# frozen_string_literal: true # frozen_string_literal: true
# rubocop:disable Graphql/ResolverType
module Resolvers module Resolvers
module Projects module Projects
......
# frozen_string_literal: true # frozen_string_literal: true
# rubocop:disable Graphql/ResolverType
module Resolvers module Resolvers
class SnippetsResolver < BaseResolver class SnippetsResolver < BaseResolver
......
# frozen_string_literal: true # frozen_string_literal: true
# rubocop:disable Graphql/ResolverType
module Resolvers module Resolvers
module Users module Users
......
---
title: Add type annotation for snippet resolvers
merge_request: 47548
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment