Try to pass reflect.Type as pointer

graph-rework-2
noah metz 2023-06-27 12:57:00 -06:00
parent 88a55cd095
commit b174727bda
1 changed files with 3 additions and 3 deletions

@ -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)