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

17 lines
353 B
Ruby

# 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