From 8af6f7d98f2fd98f85d6a17bcda49983c272cf48 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 29 Sep 2018 00:44:35 +0200 Subject: graphql: manually fix the generated code, gix the graphql handler --- graphql/graph/gen_graph.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'graphql') diff --git a/graphql/graph/gen_graph.go b/graphql/graph/gen_graph.go index c9bb165c..95a15499 100644 --- a/graphql/graph/gen_graph.go +++ b/graphql/graph/gen_graph.go @@ -5516,16 +5516,16 @@ func (ec *executionContext) _Operation(ctx context.Context, sel ast.SelectionSet switch obj := (*obj).(type) { case nil: return graphql.Null - case *operations.CreateOperation: - return ec._CreateOperation(ctx, sel, obj) - case *operations.SetTitleOperation: - return ec._SetTitleOperation(ctx, sel, obj) - case *operations.AddCommentOperation: - return ec._AddCommentOperation(ctx, sel, obj) - case *operations.SetStatusOperation: - return ec._SetStatusOperation(ctx, sel, obj) - case *operations.LabelChangeOperation: - return ec._LabelChangeOperation(ctx, sel, obj) + case operations.CreateOperation: + return ec._CreateOperation(ctx, sel, &obj) + case operations.SetTitleOperation: + return ec._SetTitleOperation(ctx, sel, &obj) + case operations.AddCommentOperation: + return ec._AddCommentOperation(ctx, sel, &obj) + case operations.SetStatusOperation: + return ec._SetStatusOperation(ctx, sel, &obj) + case operations.LabelChangeOperation: + return ec._LabelChangeOperation(ctx, sel, &obj) default: panic(fmt.Errorf("unexpected type %T", obj)) } -- cgit