Skip to content

Commit 56ee0f3

Browse files
committed
feat: shouldPersistHeaders
1 parent ed328e3 commit 56ee0f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/graphql-go/handler
22

33
go 1.14
44

5-
require github.com/graphql-go/graphql v0.8.1 // indirect
5+
require github.com/graphql-go/graphql v0.8.1

graphiql.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func renderGraphiQL(w http.ResponseWriter, params graphql.Params) {
6666
}
6767

6868
// graphiqlVersion is the current version of GraphiQL
69-
const graphiqlVersion = "3.8.3"
69+
const graphiqlVersion = "4.0.5"
7070

7171
// tmpl is the page template to render GraphiQL
7272
const graphiqlTemplate = `
@@ -196,6 +196,8 @@ add "&raw" to the end of the URL within a browser.
196196
response: {{ .ResultString }},
197197
variables: {{ .VariablesString }},
198198
operationName: {{ .OperationName }},
199+
shouldPersistHeaders: true,
200+
headerEditorEnabled: true,
199201
}),
200202
document.getElementById('graphiql')
201203
);

0 commit comments

Comments
 (0)