debian-mirror-gitlab/app/graphql/mutations/metrics/dashboard/annotations/base.rb
2020-06-23 00:09:42 +05:30

18 lines
394 B
Ruby

# frozen_string_literal: true
module Mutations
module Metrics
module Dashboard
module Annotations
class Base < BaseMutation
private
# This method is defined here in order to be used by `authorized_find!` in the subclasses.
def find_object(id:)
GitlabSchema.object_from_id(id)
end
end
end
end
end
end