Module: Types::MemberInterface

Includes:
BaseInterface
Defined in:
app/graphql/types/member_interface.rb

Instance Method Summary collapse

Instance Method Details

#merge_request_interaction(id: nil) ⇒ Object


47
48
49
50
51
# File 'app/graphql/types/member_interface.rb', line 47

def merge_request_interaction(id: nil)
  Gitlab::Graphql::Lazy.with_value(GitlabSchema.object_from_id(id, expected_class: ::MergeRequest)) do |merge_request|
    Users::MergeRequestInteraction.new(user: object.user, merge_request: merge_request) if merge_request
  end
end