Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GQLGenInputObjectFields
deprecated
func ProvidedFieldsForCurrentMutation ¶ added in v0.9.4
func ProvidedFieldsForCurrentMutation(ctx context.Context, filterArguments ...string) (map[string][]string, error)
ProvidedFieldsForCurrentMutation retrieves the fields of the Input Object types used as arguments within a gqlgen generated resolver.
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.
This function is intended to be used in gqlgen generated resolvers handling mutations.
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 ¶
Click to show internal directories.
Click to hide internal directories.