root.graphql

 1type Query {
 2    """The default unnamend repository."""
 3    defaultRepository: Repository
 4    """Access a repository by reference/name."""
 5    repository(ref: String!): Repository
 6}
 7
 8type Mutation {
 9    """Create a new bug"""
10    newBug(input: NewBugInput!): NewBugPayload!
11    """Add a new comment to a bug"""
12    addComment(input: AddCommentInput!): AddCommentPayload!
13    """Add or remove a set of label on a bug"""
14    changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
15    """Change a bug's status to open"""
16    openBug(input: OpenBugInput!): OpenBugPayload!
17    """Change a bug's status to closed"""
18    closeBug(input: CloseBugInput!): CloseBugPayload!
19    """Change a bug's title"""
20    setTitle(input: SetTitleInput!): SetTitlePayload!
21    """Commit write the pending operations into storage. This mutation fail if nothing is pending"""
22    commit(input: CommitInput!): CommitPayload!
23    """Commit write the pending operations into storage. This mutation succed if nothing is pending"""
24    commitAsNeeded(input: CommitAsNeededInput!): CommitAsNeededPayload!
25}