Class: Types::Notes::DiscussionType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Notes::DiscussionType
- Defined in:
- app/graphql/types/notes/discussion_type.rb
Instance Method Summary collapse
-
#reply_id ⇒ Object
The gem we use to generate Global IDs is hard-coded to work with `id` properties.
Methods inherited from BaseObject
Instance Method Details
#reply_id ⇒ Object
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 |