Module: Types::Notes::NoteableInterface
- Includes:
- BaseInterface
- Defined in:
- app/graphql/types/notes/noteable_interface.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.resolve_type(object, context) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/graphql/types/notes/noteable_interface.rb', line 12 def self.resolve_type(object, context) case object when Issue Types::IssueType when MergeRequest Types::MergeRequestType when Snippet Types::SnippetType when ::DesignManagement::Design Types::DesignManagement::DesignType when ::AlertManagement::Alert Types::AlertManagement::AlertType else raise "Unknown GraphQL type for #{object}" end end |
Instance Method Details
#commenters ⇒ Object
29 30 31 |
# File 'app/graphql/types/notes/noteable_interface.rb', line 29 def commenters object.commenters(user: current_user) end |