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

base.rb « pipeline_schedule « ci « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a737ccce57566d98b022b34c810e6d0ffa57e636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

module Mutations
  module Ci
    module PipelineSchedule
      class Base < BaseMutation
        PipelineScheduleID = ::Types::GlobalIDType[::Ci::PipelineSchedule]

        argument :id, PipelineScheduleID,
                 required: true,
                 description: 'ID of the pipeline schedule to mutate.'

        private

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