aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/root.go
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/resolvers/root.go
parent3cb0469a2200dea24aff1f414aa971d5e6fe9815 (diff)
downloadgit-bug-e14f1b4264ec5196834db925202d9d9f93ac35c5.tar.gz
graphql: move the mutations to a root Mutation type
Diffstat (limited to 'graphql/resolvers/root.go')
-rw-r--r--graphql/resolvers/root.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/graphql/resolvers/root.go b/graphql/resolvers/root.go
index 36a9a391..2cf629cd 100644
--- a/graphql/resolvers/root.go
+++ b/graphql/resolvers/root.go
@@ -21,6 +21,12 @@ func (r Backend) Query() graph.QueryResolver {
}
}
+func (r Backend) Mutation() graph.MutationResolver {
+ return &mutationResolver{
+ cache: &r.RootCache,
+ }
+}
+
func (Backend) AddCommentOperation() graph.AddCommentOperationResolver {
return &addCommentOperationResolver{}
}
@@ -48,7 +54,3 @@ func (Backend) SetStatusOperation() graph.SetStatusOperationResolver {
func (Backend) SetTitleOperation() graph.SetTitleOperationResolver {
return &setTitleOperationResolver{}
}
-
-func (r Backend) RepositoryMutation() graph.RepositoryMutationResolver {
- return &repoMutationResolver{}
-}