From b174727bda9729fbe6ff0812c13c6c7efb1ae8ff Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 27 Jun 2023 12:57:00 -0600 Subject: [PATCH] Try to pass reflect.Type as pointer --- gql.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gql.go b/gql.go index 78e2055..9262684 100644 --- a/gql.go +++ b/gql.go @@ -534,11 +534,11 @@ func MakeGQLHandlers(ctx * GraphContext, server * GQLThread) (func(http.Response } gql_ctx := context.Background() gql_ctx = context.WithValue(gql_ctx, "valid_nodes", valid_nodes) - gql_ctx = context.WithValue(gql_ctx, "node_type", node_type) + gql_ctx = context.WithValue(gql_ctx, "node_type", &node_type) gql_ctx = context.WithValue(gql_ctx, "valid_lockables", valid_lockables) - gql_ctx = context.WithValue(gql_ctx, "lockable_type", lockable_type) + gql_ctx = context.WithValue(gql_ctx, "lockable_type", &lockable_type) gql_ctx = context.WithValue(gql_ctx, "valid_threads", valid_threads) - gql_ctx = context.WithValue(gql_ctx, "thread_type", thread_type) + gql_ctx = context.WithValue(gql_ctx, "thread_type", &thread_type) gql_ctx = context.WithValue(gql_ctx, "gql_server", server) gql_ctx = context.WithValue(gql_ctx, "graph_context", ctx) return GQLHandler(ctx, schema, gql_ctx), GQLWSHandler(ctx, schema, gql_ctx)