1type Query {
2 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
3 repository(ref: String): Repository
4}
5
6type Mutation {
7 """Create a new bug"""
8 newBug(input: NewBugInput!, txId: TxId): NewBugPayload!
9 """Add a new comment to a bug"""
10 addComment(input: AddCommentInput!, txId: TxId): AddCommentPayload!
11 """Add or remove a set of label on a bug"""
12 changeLabels(input: ChangeLabelInput!, txId: TxId): ChangeLabelPayload!
13 """Change a bug's status to open"""
14 openBug(input: OpenBugInput!, txId: TxId): OpenBugPayload!
15 """Change a bug's status to closed"""
16 closeBug(input: CloseBugInput!, txId: TxId): CloseBugPayload!
17 """Change a bug's title"""
18 setTitle(input: SetTitleInput!, txId: TxId): SetTitlePayload!
19
20 """Start a transaction.
21 If a transaction ID if passed to the mutation, operation are accumulated
22 in memory until a commit happen.
23 """
24 startTransaction(input: StartTransactionInput!): StartTransactionPayload!
25 """Commit a transaction. All mutation linked to this transaction are written on disk."""
26 commit(input: CommitInput!): CommitPayload!
27 """Rollback a transaction. Alll mutationlinked to this transaction are discarded."""
28 rollback(input: RollbackInput!): RollbackPayload!
29}