Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶ added in v0.0.5
type Error struct { Message string `json:"message"` Locations []ErrorLocation `json:"locations,omitempty"` Path []interface{} `json:"path,omitempty"` Extensions map[string]interface{} `json:"extensions,omitempty"` }
type ErrorLocation ¶ added in v0.0.5
type Request ¶ added in v0.0.5
type Response ¶ added in v0.0.5
type Response struct { // We use a jsonnode.Object here because it maintains the order of the keys in a JSON object Data jsonnode.Object `json:"data"` Errors []Error `json:"errors"` }
func ParseGraphQLResponse ¶
func ParseGraphQLResponse(body io.ReadCloser) (*Response, error)
Click to show internal directories.
Click to hide internal directories.