aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/repo_mutation.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/repo_mutation.go
parent3cb0469a2200dea24aff1f414aa971d5e6fe9815 (diff)
downloadgit-bug-e14f1b4264ec5196834db925202d9d9f93ac35c5.tar.gz
graphql: move the mutations to a root Mutation type
Diffstat (limited to 'graphql/resolvers/repo_mutation.go')
-rw-r--r--graphql/resolvers/repo_mutation.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/graphql/resolvers/repo_mutation.go b/graphql/resolvers/repo_mutation.go
deleted file mode 100644
index 0c28cc0d..00000000
--- a/graphql/resolvers/repo_mutation.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package resolvers
-
-import (
- "context"
- "github.com/MichaelMure/git-bug/bug"
- "github.com/MichaelMure/git-bug/graphql/models"
-)
-
-type repoMutationResolver struct{}
-
-func (repoMutationResolver) NewBug(ctx context.Context, obj *models.RepositoryMutation, title string, message string) (bug.Snapshot, error) {
- b, err := obj.Repo.NewBug(title, message)
- if err != nil {
- return bug.Snapshot{}, err
- }
-
- snap := b.Snapshot()
-
- return *snap, nil
-}