From b1ae09d22a53507b3e545e3611f97a44f6c65151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ka=C5=82uski?= Date: Fri, 28 Jun 2024 13:13:10 +0200 Subject: [PATCH] feat: add ExecRawWithExtensions method for retrieving extensions in response - typo fixed --- graphql_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphql_test.go b/graphql_test.go index 738429c..df542db 100644 --- a/graphql_test.go +++ b/graphql_test.go @@ -480,7 +480,7 @@ func TestClient_Exec_QueryRawWithExtensions(t *testing.T) { t.Errorf("got body: %v, want %v", got, want) } w.Header().Set("Content-Type", "application/json") - mustWrite(w, `{"data": {"user": {"name": "Gopher"}}, "extensions": {"domain": "users", "database": {"id": 1, "name": "users_db"}}"}`) + mustWrite(w, `{"data": {"user": {"name": "Gopher"}}, "extensions": {"domain": "users", "database": {"id": 1, "name": "users_db"}}}`) }) client := graphql.NewClient("/graphql", &http.Client{Transport: localRoundTripper{handler: mux}})