summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/work_items/graphql/notes/work_item_notes_by_iid.query.graphql
blob: 6022b280d728c82631aa407b0e955798b62ae29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#import "~/graphql_shared/fragments/page_info.fragment.graphql"
#import "ee_else_ce/work_items/graphql/notes/work_item_note.fragment.graphql"

query workItemNotesByIid($fullPath: ID!, $iid: String, $after: String, $pageSize: Int) {
  workspace: project(fullPath: $fullPath) {
    id
    workItems(iid: $iid) {
      nodes {
        id
        iid
        widgets {
          ... on WorkItemWidgetNotes {
            type
            discussions(first: $pageSize, after: $after, filter: ALL_NOTES) {
              pageInfo {
                ...PageInfo
              }
              nodes {
                id
                notes {
                  nodes {
                    ...WorkItemNote
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}