diff options
Diffstat (limited to 'app/assets/javascripts/work_items/graphql/notes/work_item_notes.query.graphql')
-rw-r--r-- | app/assets/javascripts/work_items/graphql/notes/work_item_notes.query.graphql | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/assets/javascripts/work_items/graphql/notes/work_item_notes.query.graphql b/app/assets/javascripts/work_items/graphql/notes/work_item_notes.query.graphql new file mode 100644 index 00000000000..56dc175109f --- /dev/null +++ b/app/assets/javascripts/work_items/graphql/notes/work_item_notes.query.graphql @@ -0,0 +1,27 @@ +#import "~/graphql_shared/fragments/page_info.fragment.graphql" +#import "./work_item_note.fragment.graphql" + +query workItemNotes($id: WorkItemID!, $after: String, $pageSize: Int) { + workItem(id: $id) { + id + iid + widgets { + ... on WorkItemWidgetNotes { + type + discussions(first: $pageSize, after: $after, filter: ALL_NOTES) { + pageInfo { + ...PageInfo + } + nodes { + id + notes { + nodes { + ...WorkItemNote + } + } + } + } + } + } + } +} |