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  id: String!
 32  humanId: String!
 33  status: Status!
 34  title: String!
 35  labels: [Label!]!
 36  author: Identity!
 37  createdAt: Time!
 38  lastEdit: Time!
 39
 40  comments(
 41    """Returns the elements in the list that come after the specified cursor."""
 42    after: String
 43    """Returns the elements in the list that come before the specified cursor."""
 44    before: String
 45    """Returns the first _n_ elements from the list."""
 46    first: Int
 47    """Returns the last _n_ elements from the list."""
 48    last: Int
 49  ): CommentConnection!
 50
 51  timeline(
 52    """Returns the elements in the list that come after the specified cursor."""
 53    after: String
 54    """Returns the elements in the list that come before the specified cursor."""
 55    before: String
 56    """Returns the first _n_ elements from the list."""
 57    first: Int
 58    """Returns the last _n_ elements from the list."""
 59    last: Int
 60  ): TimelineItemConnection!
 61
 62  operations(
 63    """Returns the elements in the list that come after the specified cursor."""
 64    after: String
 65    """Returns the elements in the list that come before the specified cursor."""
 66    before: String
 67    """Returns the first _n_ elements from the list."""
 68    first: Int
 69    """Returns the last _n_ elements from the list."""
 70    last: Int
 71  ): OperationConnection!
 72}
 73
 74"""The connection type for Bug."""
 75type BugConnection {
 76  """A list of edges."""
 77  edges: [BugEdge!]!
 78  nodes: [Bug!]!
 79  """Information to aid in pagination."""
 80  pageInfo: PageInfo!
 81  """Identifies the total count of items in the connection."""
 82  totalCount: Int!
 83}
 84
 85"""An edge in a connection."""
 86type BugEdge {
 87  """A cursor for use in pagination."""
 88  cursor: String!
 89  """The item at the end of the edge."""
 90  node: Bug!
 91}
 92
 93type Repository {
 94  allBugs(
 95    """Returns the elements in the list that come after the specified cursor."""
 96    after: String
 97    """Returns the elements in the list that come before the specified cursor."""
 98    before: String
 99    """Returns the first _n_ elements from the list."""
100    first: Int
101    """Returns the last _n_ elements from the list."""
102    last: Int
103    """A query to select and order bugs"""
104    query: String
105  ): BugConnection!
106  bug(prefix: String!): Bug
107}
108