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    #TODO: connection for all repositories
 8}
 9
10type Mutation {
11    """Create a new bug"""
12    newBug(input: NewBugInput!): NewBugPayload!
13    """Add a new comment to a bug"""
14    addComment(input: AddCommentInput!): AddCommentPayload!
15    """Add or remove a set of label on a bug"""
16    changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
17    """Change a bug's status to open"""
18    openBug(input: OpenBugInput!): OpenBugPayload!
19    """Change a bug's status to closed"""
20    closeBug(input: CloseBugInput!): CloseBugPayload!
21    """Change a bug's title"""
22    setTitle(input: SetTitleInput!): SetTitlePayload!
23    """Commit write the pending operations into storage. This mutation fail if nothing is pending"""
24    commit(input: CommitInput!): CommitPayload!
25    """Commit write the pending operations into storage. This mutation succed if nothing is pending"""
26    commitAsNeeded(input: CommitAsNeededInput!): CommitAsNeededPayload!
27}