aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-08 17:22:45 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:35:09 +0100
commit20ca2bc0984f089a45286002a429d51746b0febb (patch)
tree61bd87f249ca638cb691d9d17d3eceb6493ae69b /graphql/resolvers
parent646fd681ffba59d4a74ec3d99558d2ed70b0106b (diff)
downloadgit-bug-20ca2bc0984f089a45286002a429d51746b0febb.tar.gz
fix merge
Diffstat (limited to 'graphql/resolvers')
-rw-r--r--graphql/resolvers/identity.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphql/resolvers/identity.go b/graphql/resolvers/identity.go
index 2d1e909b..d36669d0 100644
--- a/graphql/resolvers/identity.go
+++ b/graphql/resolvers/identity.go
@@ -14,3 +14,8 @@ type identityResolver struct{}
func (identityResolver) ID(ctx context.Context, obj identity.Interface) (string, error) {
return obj.Id().String(), nil
}
+
+func (r identityResolver) HumanID(ctx context.Context, obj identity.Interface) (string, error) {
+ return obj.Id().Human(), nil
+
+}