summaryrefslogtreecommitdiff
path: root/app/graphql/types/notes/discussion_type.rb
blob: c4691942f2dceb8532af3b3c2b8e99dd561207d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Types
  module Notes
    class DiscussionType < BaseObject
      graphql_name 'Discussion'

      authorize :read_note

      field :id, GraphQL::ID_TYPE, null: false
      field :created_at, Types::TimeType, null: false
      field :notes, Types::Notes::NoteType.connection_type, null: false, description: "All notes in the discussion"
    end
  end
end