Class: Types::Notes::DiscussionType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/notes/discussion_type.rb

Instance Method Summary collapse

Methods inherited from BaseObject

#current_user, #id

Instance Method Details

#reply_idObject

The gem we use to generate Global IDs is hard-coded to work with `id` properties. To generate a GID for the `reply_id` property, we must use the ::Gitlab::GlobalId module.


24
25
26
# File 'app/graphql/types/notes/discussion_type.rb', line 24

def reply_id
  ::Gitlab::GlobalId.build(object, id: object.reply_id)
end