aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-30 00:20:04 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-30 00:20:04 +0200
commit79b3d189186783c01acb194de825976a007dbd5f (patch)
tree8369931fc77e22dff7b93de3c64d46e743592e4a /graphql/resolvers
parent5b70e3452a4685112fd005fef0727930ebd2adaf (diff)
downloadgit-bug-79b3d189186783c01acb194de825976a007dbd5f.tar.gz
graphql: use an interface instead of an union for the operations for easier query
Diffstat (limited to 'graphql/resolvers')
-rw-r--r--graphql/resolvers/bug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphql/resolvers/bug.go b/graphql/resolvers/bug.go
index a895cdcd..dfb5c913 100644
--- a/graphql/resolvers/bug.go
+++ b/graphql/resolvers/bug.go
@@ -35,7 +35,7 @@ func (bugResolver) Comments(ctx context.Context, obj *bug.Snapshot, input models
func (bugResolver) Operations(ctx context.Context, obj *bug.Snapshot, input models.ConnectionInput) (models.OperationConnection, error) {
edger := func(op bug.Operation, offset int) connections.Edge {
return models.OperationEdge{
- Node: op.(models.OperationUnion),
+ Node: op.(models.Operation),
Cursor: connections.OffsetToCursor(offset),
}
}