graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.87k stars 839 forks source link

http.ResponseWriter #554

Open Fruchtgummi opened 4 years ago

Fruchtgummi commented 4 years ago

How I get the http.ResponseWriter in Resolve?

Resolve: func(p graphql.ResolveParams) (interface{}, error) {

r := p.Context.Value("httprequest").(*http.Request)

p.Context.Value("?????").(http.ResponseWriter)?

}