aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/operations.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-16 21:29:49 +0200
committerMichael Muré <batolettre@gmail.com>2019-06-16 21:29:49 +0200
commitb2f8572c4493205535558fb9320689aaf4774dc1 (patch)
tree021ed8eef1bb57c73ca595c3e79706cf215d6eee /graphql/resolvers/operations.go
parent08c0e18ade5241d124fc8a3424b7612174e82cef (diff)
downloadgit-bug-b2f8572c4493205535558fb9320689aaf4774dc1.tar.gz
graphql: change mutations to respect the Relay specification
https://facebook.github.io/relay/graphql/mutations.htm This specification also allow to expose a mutationId for fire and forget, as well as the created operation.
Diffstat (limited to 'graphql/resolvers/operations.go')
-rw-r--r--graphql/resolvers/operations.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphql/resolvers/operations.go b/graphql/resolvers/operations.go
index 90817567..19b2b17f 100644
--- a/graphql/resolvers/operations.go
+++ b/graphql/resolvers/operations.go
@@ -63,5 +63,5 @@ func convertStatus(status bug.Status) (models.Status, error) {
return models.StatusClosed, nil
}
- return "", fmt.Errorf("Unknown status")
+ return "", fmt.Errorf("unknown status")
}