GraphQL.Variable (GraphQL Client v0.2.1) View Source

A struct to represent GraphQL variables

Link to this section Summary

Types

A GraphQL generic name

t()

A struct that represents the definition of a GraphQL variable.

Functions

Check if two variables represent the same variable

Link to this section Types

Specs

name() :: String.t() | atom()

A GraphQL generic name

Specs

t() :: %GraphQL.Variable{default_value: any(), name: name(), type: name()}

A struct that represents the definition of a GraphQL variable.

A variable definition exists within a query or mutation, and then can be referenced by the arguments of fields.

Link to this section Functions

Specs

same?(t(), t()) :: boolean()

Check if two variables represent the same variable