Class: Types::Users::AutocompletedUserType
- Inherits:
-
Types::UserType
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::UserType
- Types::Users::AutocompletedUserType
- Defined in:
- app/graphql/types/users/autocompleted_user_type.rb
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#merge_request_interaction(id: nil) ⇒ Object
17 18 19 20 21 |
# File 'app/graphql/types/users/autocompleted_user_type.rb', line 17 def merge_request_interaction(id: nil) Gitlab::Graphql::Lazy.with_value(GitlabSchema.object_from_id(id, expected_class: ::MergeRequest)) do |mr| ::Users::MergeRequestInteraction.new(user: object.user, merge_request: mr) if mr end end |