From 79b3d189186783c01acb194de825976a007dbd5f Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 30 Jul 2018 00:20:04 +0200 Subject: graphql: use an interface instead of an union for the operations for easier query --- graphql/resolvers/bug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphql/resolvers') 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), } } -- cgit