1"""Represents a comment on a bug."""
2type Comment implements Authored {
3 """The author of this comment."""
4 author: Identity!
5
6 """The message of this comment."""
7 message: String!
8
9 """All media's hash referenced in this comment"""
10 files: [Hash!]!
11}
12
13type CommentConnection {
14 edges: [CommentEdge!]!
15 nodes: [Comment!]!
16 pageInfo: PageInfo!
17 totalCount: Int!
18}
19
20type CommentEdge {
21 cursor: String!
22 node: Comment!
23}
24
25enum Status {
26 OPEN
27 CLOSED
28}
29
30type Bug {
31 """The identifier for this bug"""
32 id: String!
33 """The human version (truncated) identifier for this bug"""
34 humanId: String!
35 status: Status!
36 title: String!
37 labels: [Label!]!
38 author: Identity!
39 createdAt: Time!
40 lastEdit: Time!
41
42 comments(
43 """Returns the elements in the list that come after the specified cursor."""
44 after: String
45 """Returns the elements in the list that come before the specified cursor."""
46 before: String
47 """Returns the first _n_ elements from the list."""
48 first: Int
49 """Returns the last _n_ elements from the list."""
50 last: Int
51 ): CommentConnection!
52
53 timeline(
54 """Returns the elements in the list that come after the specified cursor."""
55 after: String
56 """Returns the elements in the list that come before the specified cursor."""
57 before: String
58 """Returns the first _n_ elements from the list."""
59 first: Int
60 """Returns the last _n_ elements from the list."""
61 last: Int
62 ): TimelineItemConnection!
63
64 operations(
65 """Returns the elements in the list that come after the specified cursor."""
66 after: String
67 """Returns the elements in the list that come before the specified cursor."""
68 before: String
69 """Returns the first _n_ elements from the list."""
70 first: Int
71 """Returns the last _n_ elements from the list."""
72 last: Int
73 ): OperationConnection!
74}
75
76"""The connection type for Bug."""
77type BugConnection {
78 """A list of edges."""
79 edges: [BugEdge!]!
80 nodes: [Bug!]!
81 """Information to aid in pagination."""
82 pageInfo: PageInfo!
83 """Identifies the total count of items in the connection."""
84 totalCount: Int!
85}
86
87"""An edge in a connection."""
88type BugEdge {
89 """A cursor for use in pagination."""
90 cursor: String!
91 """The item at the end of the edge."""
92 node: Bug!
93}
94