Documentation
¶
Index ¶
Constants ¶
View Source
const ( ValidationFailedError = "GRAPHQL_VALIDATION_FAILED" UndefinedError = "UNDEFINED_ERROR" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Extensions map[string]interface{} `json:"extensions"`
Message string `json:"message"`
Locations []Location `json:"locations,omitempty"`
Path []interface{} `json:"path,omitempty"`
}
Error represents a graphql error
type ErrorList ¶
type ErrorList []*Error
ErrorList represents a list of errors
func ExtendErrorList ¶
ExtendErrorList adds provided err as *Error
func FormatError ¶
Click to show internal directories.
Click to hide internal directories.