Documentation ¶
Overview ¶
Package graphqlutil provides utilities for working with GraphQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrForbidden = errors.New("forbidden") )
Common errors that may be returned by GraphQL APIs. These may be matched with errors.Is.
Functions ¶
func WrapTransport ¶
func WrapTransport(t http.RoundTripper) http.RoundTripper
WrapTransport wraps an HTTP transport with knowledge of GraphQL errors.
The transport will now return errors that may be cast to ErrorList or Error with errors.As.
Types ¶
Click to show internal directories.
Click to hide internal directories.