samsarahq / thunder

⚡️ A Go framework for rapidly building powerful graphql services

Home Page:https://godoc.org/github.com/samsarahq/thunder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't include errors when null

AndrewWPhillips opened this issue · comments

It's redundant (and makes it hard to write my load tests with jMeter) if the response JSON includes "error", null.

Could you change https://github.com/samsarahq/thunder/blob/master/graphql/http.go#L39 to use omitempty please:

	Errors []string    `json:"errors,omitempty"`