gitlab-org--gitlab-foss/app/graphql/resolvers/merge_request_resolver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
458 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Resolvers
class MergeRequestResolver < BaseResolver.single
include ResolvesMergeRequests
alias_method :project, :object
type ::Types::MergeRequestType, null: true
argument :iid, GraphQL::Types::String,
required: true,
as: :iids,
description: 'IID of the merge request, for example `1`.'
def no_results_possible?(args)
project.nil?
end
end
end