gitlab-org--gitlab-foss/app/graphql/mutations/metrics/dashboard/annotations/base.rb

19 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