debian-mirror-gitlab/app/graphql/mutations/metrics/dashboard/annotations/base.rb
2020-10-03 22:27:07 +00:00

18 lines
443 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, expected_type: ::Metrics::Dashboard::Annotation)
end
end
end
end
end
end