summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/ci/base.rb
blob: 09df4487a50e5caba23ae9b34ee8d8b10c8fb7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Mutations
  module Ci
    class Base < BaseMutation
      argument :id, ::Types::GlobalIDType[::Ci::Pipeline],
                required: true,
                description: 'The id of the pipeline to mutate'

      private

      def find_object(id:)
        GlobalID::Locator.locate(id)
      end
    end
  end
end