Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphQLError ¶
type GraphQLError struct { Message string `json:"message"` Locations []GraphQLErrorLocation `json:"locations,omitempty"` Path []interface{} `json:"path,omitempty"` Extensions map[string]interface{} `json:"extensions,omitempty"` }
type GraphQLErrorLocation ¶
type GraphQLRequest ¶
type GraphQLRequest struct { Query string `json:"query"` // A map of variable names to the value of that variable. Allowed value types are strings, numeric types, and booleans Variables map[string]interface{} `json:"variables,omitempty"` OperationName string `json:"operationName,omitempty"` }
func (*GraphQLRequest) ToBody ¶
func (request *GraphQLRequest) ToBody() ([]byte, error)
type GraphQLResponse ¶
type GraphQLResponse struct { Data map[string]interface{} `json:"data"` Errors []GraphQLError `json:"errors"` }
func ParseGraphQLResponse ¶
func ParseGraphQLResponse(body io.ReadCloser) (*GraphQLResponse, error)
Click to show internal directories.
Click to hide internal directories.