diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-09 02:47:12 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-09 02:47:12 +0100 |
commit | 2af456f5e05f242d9e13049e038b9bd2d6dfc1cc (patch) | |
tree | 40730a7ff92a420af65d9d2560a07d47a6a72174 /graphql/graph | |
parent | b7dc5b8aebd1caf463320ff5672026150b8c5ade (diff) | |
download | git-bug-2af456f5e05f242d9e13049e038b9bd2d6dfc1cc.tar.gz |
use the handle-interfaces-implementing-interfaces of gqlgen to fix a generation bug
Diffstat (limited to 'graphql/graph')
-rw-r--r-- | graphql/graph/gen_graph.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |