bug.graphql

  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  """The actors of the bug. Actors are Identity that have interacted with the bug."""
 43  actors(
 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  ): IdentityConnection!
 53
 54  """The participants of the bug. Participants are Identity that have created or
 55  added a comment on the bug."""
 56  participants(
 57    """Returns the elements in the list that come after the specified cursor."""
 58    after: String
 59    """Returns the elements in the list that come before the specified cursor."""
 60    before: String
 61    """Returns the first _n_ elements from the list."""
 62    first: Int
 63    """Returns the last _n_ elements from the list."""
 64    last: Int
 65  ): IdentityConnection!
 66
 67  comments(
 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  ): CommentConnection!
 77
 78  timeline(
 79    """Returns the elements in the list that come after the specified cursor."""
 80    after: String
 81    """Returns the elements in the list that come before the specified cursor."""
 82    before: String
 83    """Returns the first _n_ elements from the list."""
 84    first: Int
 85    """Returns the last _n_ elements from the list."""
 86    last: Int
 87  ): TimelineItemConnection!
 88
 89  operations(
 90    """Returns the elements in the list that come after the specified cursor."""
 91    after: String
 92    """Returns the elements in the list that come before the specified cursor."""
 93    before: String
 94    """Returns the first _n_ elements from the list."""
 95    first: Int
 96    """Returns the last _n_ elements from the list."""
 97    last: Int
 98  ): OperationConnection!
 99}
100
101"""The connection type for Bug."""
102type BugConnection {
103  """A list of edges."""
104  edges: [BugEdge!]!
105  nodes: [Bug!]!
106  """Information to aid in pagination."""
107  pageInfo: PageInfo!
108  """Identifies the total count of items in the connection."""
109  totalCount: Int!
110}
111
112"""An edge in a connection."""
113type BugEdge {
114  """A cursor for use in pagination."""
115  cursor: String!
116  """The item at the end of the edge."""
117  node: Bug!
118}
119