Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GQLGenInputObjectFields ¶
GQLGenInputObjectFields retrieves the fields of the Input Object types used as arguments when executing mutations. For example, `mutation { updateUser(input: {id: 123, name: "Marta"}) { id }` would return the fields "id" and "name" returning a map with key 'input', and slice of strings. If no arguments are specified, 'input' will be returned (if available). This also works when variables are used. Nil is returned when no operation is in context, or when the operation is not a mutation, or no arguments were available.
Types ¶
type Client ¶
type Client struct { ContentType string HttpClient *http.Client // contains filtered or unexported fields }
Client defines a GraphQL client connecting to the endpoint using HTTP.
func (*Client) ExecuteWithVars ¶
type Payload ¶
type Payload struct { Query string `json:"query"` Variables Variables `json:"variables,omitempty"` }
Payload defines what we send to the GraphQL endpoint.
Click to show internal directories.
Click to hide internal directories.