Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,18 @@ func ImmediatelyCloseReqBody() ClientOption {
type ClientOption func(*Client)

type graphErr struct {
Message string
Message string
ErrorExtensions map[string]interface{} `json:"extensions"`
}

func (e graphErr) Error() string {
return "graphql: " + e.Message
}

func (e graphErr) Extensions() map[string]interface{} {
return e.ErrorExtensions
}

type graphResponse struct {
Data interface{}
Errors []graphErr
Expand Down