debian-mirror-gitlab/app/graphql/mutations/ci/pipeline_schedule/base.rb
2022-11-25 23:54:43 +05:30

21 lines
468 B
Ruby

# 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