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

base.rb « lists « boards « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34c138bddc9ce06807dd562627e53987e4c7f2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true

module Mutations
  module Boards
    module Lists
      class Base < BaseMutation
        include Mutations::ResolvesIssuable

        argument :board_id, ::Types::GlobalIDType[::Board],
                 required: true,
                 description: 'Global ID of the issue board to mutate.'

        field :list,
              Types::BoardListType,
              null: true,
              description: 'List of the issue board.'

        authorize :admin_list

        private

        def find_object(id:)
          GitlabSchema.object_from_id(id, expected_type: ::Board)
        end
      end
    end
  end
end