aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-30 01:36:41 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-30 01:36:41 +0200
commite14f1b4264ec5196834db925202d9d9f93ac35c5 (patch)
tree754b5b34d9851d0190b4631d43d57d77ce55f284 /graphql/schema.graphql
parent3cb0469a2200dea24aff1f414aa971d5e6fe9815 (diff)
downloadgit-bug-e14f1b4264ec5196834db925202d9d9f93ac35c5.tar.gz
graphql: move the mutations to a root Mutation type
Diffstat (limited to 'graphql/schema.graphql')
-rw-r--r--graphql/schema.graphql7
1 files changed, 2 insertions, 5 deletions
diff --git a/graphql/schema.graphql b/graphql/schema.graphql
index b481d2d7..52623301 100644
--- a/graphql/schema.graphql
+++ b/graphql/schema.graphql
@@ -166,8 +166,6 @@ type Bug {
type Repository {
allBugs(input: ConnectionInput!): BugConnection!
bug(prefix: String!): Bug
-
- mutation: RepositoryMutation!
}
type Query {
@@ -175,7 +173,6 @@ type Query {
repository(id: String!): Repository
}
-
-type RepositoryMutation {
- newBug(title: String!, message: String!): Bug!
+type Mutation {
+ newBug(repoRef: String, title: String!, message: String!): Bug!
}