aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/graph/gen_graph.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-09 02:47:12 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-09 02:47:12 +0100
commit2af456f5e05f242d9e13049e038b9bd2d6dfc1cc (patch)
tree40730a7ff92a420af65d9d2560a07d47a6a72174 /graphql/graph/gen_graph.go
parentb7dc5b8aebd1caf463320ff5672026150b8c5ade (diff)
downloadgit-bug-2af456f5e05f242d9e13049e038b9bd2d6dfc1cc.tar.gz
use the handle-interfaces-implementing-interfaces of gqlgen to fix a generation bug
Diffstat (limited to 'graphql/graph/gen_graph.go')
-rw-r--r--graphql/graph/gen_graph.go3
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 {