bug.graphql

 1type Bug implements Authored
 2@goModel(model: "github.com/git-bug/git-bug/api/graphql/models.BugWrapper") {
 3
 4    """The identifier for this bug"""
 5    id: ID!
 6    """The human version (truncated) identifier for this bug"""
 7    humanId: String!
 8
 9    createdAt: Time!
10    lastEdit: Time!
11
12    status: Status!
13    title: String!
14    labels: [Label!]!
15    author: Identity!
16
17    """The actors of the bug. Actors are Identity that have interacted with the bug."""
18    actors(
19        """Returns the elements in the list that come after the specified cursor."""
20        after: String
21        """Returns the elements in the list that come before the specified cursor."""
22        before: String
23        """Returns the first _n_ elements from the list."""
24        first: Int
25        """Returns the last _n_ elements from the list."""
26        last: Int
27    ): IdentityConnection!
28
29    """The participants of the bug. Participants are Identity that have created or
30    added a comment on the bug."""
31    participants(
32        """Returns the elements in the list that come after the specified cursor."""
33        after: String
34        """Returns the elements in the list that come before the specified cursor."""
35        before: String
36        """Returns the first _n_ elements from the list."""
37        first: Int
38        """Returns the last _n_ elements from the list."""
39        last: Int
40    ): IdentityConnection!
41
42    """The comments of the bug. They include the bug's creation comment."""
43    comments(
44        """Returns the elements in the list that come after the specified cursor."""
45        after: String
46        """Returns the elements in the list that come before the specified cursor."""
47        before: String
48        """Returns the first _n_ elements from the list."""
49        first: Int
50        """Returns the last _n_ elements from the list."""
51        last: Int
52    ): BugCommentConnection!
53
54    """The timeline of changes on the bug."""
55    timeline(
56        """Returns the elements in the list that come after the specified cursor."""
57        after: String
58        """Returns the elements in the list that come before the specified cursor."""
59        before: String
60        """Returns the first _n_ elements from the list."""
61        first: Int
62        """Returns the last _n_ elements from the list."""
63        last: Int
64    ): BugTimelineItemConnection!
65
66    """The raw operations on the bug."""
67    operations(
68        """Returns the elements in the list that come after the specified cursor."""
69        after: String
70        """Returns the elements in the list that come before the specified cursor."""
71        before: String
72        """Returns the first _n_ elements from the list."""
73        first: Int
74        """Returns the last _n_ elements from the list."""
75        last: Int
76    ): OperationConnection!
77}
78
79"""The connection type for Bug."""
80type BugConnection {
81    """A list of edges."""
82    edges: [BugEdge!]!
83    nodes: [Bug!]!
84    """Information to aid in pagination."""
85    pageInfo: PageInfo!
86    """Identifies the total count of items in the connection."""
87    totalCount: Int!
88}
89
90"""An edge in a connection."""
91type BugEdge {
92    """A cursor for use in pagination."""
93    cursor: String!
94    """The item at the end of the edge."""
95    node: Bug!
96}