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)