1"""Represents an Item on a Board's Column."""
2interface BoardItem
3@goModel(model: "github.com/git-bug/git-bug/entities/board.Item") {
4 """The identifier of the item"""
5 id: CombinedId! @goField(name: "CombinedId")
6 """The item's author."""
7 author: Identity!
8 """The item's title."""
9 title: String!
10 """The item's labels."""
11 labels: [Label!]!
12}
13
14type BoardItemConnection {
15 edges: [BoardItemEdge!]!
16 nodes: [BoardItem!]!
17 pageInfo: PageInfo!
18 totalCount: Int!
19}
20
21type BoardItemEdge {
22 cursor: String!
23 node: BoardItem!
24}
25
26type BoardItemDraft implements BoardItem & Authored
27@goModel(model: "github.com/git-bug/git-bug/entities/board.Draft") {
28 """The identifier of the item"""
29 id: CombinedId! @goField(name: "CombinedId")
30 """The item's author."""
31 author: Identity!
32 """The item's title."""
33 title: String!
34 """The item's labels."""
35 labels: [Label!]!
36}
37
38type BoardItemBug implements BoardItem & Authored
39@goModel(model: "github.com/git-bug/git-bug/entities/board.BugItem") {
40 """The identifier of the item"""
41 id: CombinedId! @goField(name: "CombinedId")
42 """The item's author."""
43 author: Identity!
44 """The item's title."""
45 title: String!
46 """The item's labels."""
47 labels: [Label!]!
48}