aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/schema/root.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'api/graphql/schema/root.graphql')
-rw-r--r--api/graphql/schema/root.graphql19
1 files changed, 19 insertions, 0 deletions
diff --git a/api/graphql/schema/root.graphql b/api/graphql/schema/root.graphql
new file mode 100644
index 00000000..94a0b530
--- /dev/null
+++ b/api/graphql/schema/root.graphql
@@ -0,0 +1,19 @@
+type Query {
+ """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
+ repository(ref: String): Repository
+}
+
+type Mutation {
+ """Create a new bug"""
+ newBug(input: NewBugInput!): NewBugPayload!
+ """Add a new comment to a bug"""
+ addComment(input: AddCommentInput!): AddCommentPayload!
+ """Add or remove a set of label on a bug"""
+ changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
+ """Change a bug's status to open"""
+ openBug(input: OpenBugInput!): OpenBugPayload!
+ """Change a bug's status to closed"""
+ closeBug(input: CloseBugInput!): CloseBugPayload!
+ """Change a bug's title"""
+ setTitle(input: SetTitleInput!): SetTitlePayload!
+}