debian-mirror-gitlab/app/graphql/mutations/boards/lists/base.rb
2020-11-24 15:15:51 +05:30

28 lines
643 B
Ruby

# 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