diff --git a/handler.go b/handler.go index 13a8fa0..23d12f2 100644 --- a/handler.go +++ b/handler.go @@ -145,7 +145,7 @@ func (h *Handler) ContextHandler(ctx context.Context, w http.ResponseWriter, r * // ServeHTTP provides an entrypoint into executing graphQL queries. func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { - h.ContextHandler(context.Background(), w, r) + h.ContextHandler(r.Context(), w, r) } type Config struct {