Commit d51891b7 authored by Robert Speicher's avatar Robert Speicher

Merge branch '281697-fj-fix-snippet-resolvers' into 'master'

Add type annotation for snippet resolvers

See merge request gitlab-org/gitlab!47548
parents 4f6824c9 53dbc6bd
...@@ -55,10 +55,7 @@ Graphql/ResolverType: ...@@ -55,10 +55,7 @@ Graphql/ResolverType:
- 'app/graphql/resolvers/merge_requests_resolver.rb' - 'app/graphql/resolvers/merge_requests_resolver.rb'
- 'app/graphql/resolvers/project_merge_requests_resolver.rb' - 'app/graphql/resolvers/project_merge_requests_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