From 2af456f5e05f242d9e13049e038b9bd2d6dfc1cc Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 9 Feb 2020 02:47:12 +0100 Subject: use the handle-interfaces-implementing-interfaces of gqlgen to fix a generation bug --- graphql/graph/gen_graph.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'graphql') diff --git a/graphql/graph/gen_graph.go b/graphql/graph/gen_graph.go index 568aa2b9..67913377 100644 --- a/graphql/graph/gen_graph.go +++ b/graphql/graph/gen_graph.go @@ -10457,6 +10457,9 @@ func (ec *executionContext) _Authored(ctx context.Context, sel ast.SelectionSet, } return ec._Comment(ctx, sel, obj) case models.BugWrapper: + if obj == nil { + return graphql.Null + } return ec._Bug(ctx, sel, obj) case *bug.CreateOperation: if obj == nil { -- cgit