From e7798ff26198eceb79f10d5743558aba02629ec8 Mon Sep 17 00:00:00 2001 From: Gavi Galloway Date: Mon, 13 Apr 2020 12:18:38 -0700 Subject: [PATCH] insert operation context --- graphql/handler/transport/http_post.go | 1 + 1 file changed, 1 insertion(+) diff --git a/graphql/handler/transport/http_post.go b/graphql/handler/transport/http_post.go index deefeb38d00..35bf510fca0 100644 --- a/graphql/handler/transport/http_post.go +++ b/graphql/handler/transport/http_post.go @@ -48,6 +48,7 @@ func (h POST) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecu writeJson(w, resp) return } + ctx = graphql.WithOperationContext(r.Context(), rc) responses, ctx := exec.DispatchOperation(r.Context(), rc) writeJson(w, responses(ctx)) }