Module: Types::Notes::BaseDiscussionInterface
- Includes:
- BaseInterface
- Defined in:
- app/graphql/types/notes/base_discussion_interface.rb
Constant Summary collapse
- DiscussionID =
::Types::GlobalIDType[::Discussion]
Instance Method Summary collapse
-
#reply_id ⇒ Object
DiscussionID.coerce_result is suitable here, but will always mark this as being a ‘Discussion’.
Instance Method Details
#reply_id ⇒ Object
DiscussionID.coerce_result is suitable here, but will always mark this as being a ‘Discussion’. Using GlobalId.build guarantees that we get the correct class, and that it matches id.
23 24 25 |
# File 'app/graphql/types/notes/base_discussion_interface.rb', line 23 def reply_id ::Gitlab::GlobalId.build(object, id: object.reply_id) end |