debian-mirror-gitlab/app/graphql/resolvers/projects/grafana_integration_resolver.rb
2020-03-13 15:44:24 +05:30

17 lines
345 B
Ruby

# frozen_string_literal: true
module Resolvers
module Projects
class GrafanaIntegrationResolver < BaseResolver
type Types::GrafanaIntegrationType, null: true
alias_method :project, :object
def resolve(**args)
return unless project.is_a? Project
project.grafana_integration
end
end
end
end