Documentation ¶
Overview ¶
Code generated by github.com/stackworx-go/graphql, DO NOT EDIT.
Index ¶
- Variables
- type Client
- func (c *Client) CreateTodoMutation(input CreateTodoInput, opts *RequestOpts) (*CreateTodoMutationPayload, error)
- func (c *Client) NodeQuery(nodeId string, opts *RequestOpts) (*NodeQueryPayload, error)
- func (c *Client) TodosQuery(opts *RequestOpts) (*TodosQueryPayload, error)
- func (c *Client) TodosWithVariablesQuery(userId string, opts *RequestOpts) (*TodosWithVariablesQueryPayload, error)
- type CreateTodoInput
- type CreateTodoMutationPayload
- type CreateTodoMutationPayloadCreateTodo
- type CreateTodoMutationPayloadCreateTodoTodo
- type CreateTodoMutationPayloadCreateTodoTodoUser
- type GraphqlError
- type NodeQueryPayload
- type NodeQueryPayloadNode
- type NodeQueryPayloadNodeTodoFragment
- type NodeQueryPayloadNodeUserFragment
- type RequestOpts
- type TodosQueryPayload
- type TodosQueryPayloadTodos
- type TodosQueryPayloadTodosUser
- type TodosWithVariablesQueryPayload
- type TodosWithVariablesQueryPayloadTodos
- type TodosWithVariablesQueryPayloadTodosUser
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTodoMutation = `` /* 157-byte string literal not displayed */
View Source
var NodeQuery = `` /* 148-byte string literal not displayed */
View Source
var TodosQuery = `query TodosQuery {
todos {
id
text
done
user {
id
name
}
}
}
`
View Source
var TodosWithVariablesQuery = `query TodosWithVariablesQuery ($userId: ID!) {
todos(userId: $userId) {
id
text
done
user {
id
name
}
}
}
`
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateTodoMutation ¶
func (c *Client) CreateTodoMutation(input CreateTodoInput, opts *RequestOpts) (*CreateTodoMutationPayload, error)
func (*Client) NodeQuery ¶
func (c *Client) NodeQuery(nodeId string, opts *RequestOpts) (*NodeQueryPayload, error)
func (*Client) TodosQuery ¶
func (c *Client) TodosQuery(opts *RequestOpts) (*TodosQueryPayload, error)
func (*Client) TodosWithVariablesQuery ¶
func (c *Client) TodosWithVariablesQuery(userId string, opts *RequestOpts) (*TodosWithVariablesQueryPayload, error)
type CreateTodoInput ¶
type CreateTodoMutationPayload ¶
type CreateTodoMutationPayload struct {
CreateTodo CreateTodoMutationPayloadCreateTodo `json:"createTodo"`
}
type CreateTodoMutationPayloadCreateTodo ¶
type CreateTodoMutationPayloadCreateTodo struct {
Todo CreateTodoMutationPayloadCreateTodoTodo `json:"todo"`
}
type CreateTodoMutationPayloadCreateTodoTodo ¶
type CreateTodoMutationPayloadCreateTodoTodo struct { Id string `json:"id"` Text string `json:"text"` Done bool `json:"done"` User CreateTodoMutationPayloadCreateTodoTodoUser `json:"user"` }
type GraphqlError ¶
func (*GraphqlError) Error ¶
func (e *GraphqlError) Error() string
type NodeQueryPayload ¶
type NodeQueryPayload struct {
Node *NodeQueryPayloadNode `json:"node,omitempty"`
}
type NodeQueryPayloadNode ¶
type NodeQueryPayloadNode struct { Id string `json:"id"` UserFragment *NodeQueryPayloadNodeUserFragment TodoFragment *NodeQueryPayloadNodeTodoFragment }
func (*NodeQueryPayloadNode) UnmarshalJSON ¶
func (f *NodeQueryPayloadNode) UnmarshalJSON(data []byte) error
type NodeQueryPayloadNodeTodoFragment ¶
type NodeQueryPayloadNodeTodoFragment struct { Text string `json:"text"` // contains filtered or unexported fields }
type NodeQueryPayloadNodeUserFragment ¶
type NodeQueryPayloadNodeUserFragment struct { Name string `json:"name"` // contains filtered or unexported fields }
type RequestOpts ¶
type TodosQueryPayload ¶
type TodosQueryPayload struct {
Todos []TodosQueryPayloadTodos `json:"todos"`
}
type TodosQueryPayloadTodos ¶
type TodosQueryPayloadTodos struct { Id string `json:"id"` Text string `json:"text"` Done bool `json:"done"` User TodosQueryPayloadTodosUser `json:"user"` }
type TodosWithVariablesQueryPayload ¶
type TodosWithVariablesQueryPayload struct {
Todos []TodosWithVariablesQueryPayloadTodos `json:"todos"`
}
type TodosWithVariablesQueryPayloadTodos ¶
type TodosWithVariablesQueryPayloadTodos struct { Id string `json:"id"` Text string `json:"text"` Done bool `json:"done"` User TodosWithVariablesQueryPayloadTodosUser `json:"user"` }
Click to show internal directories.
Click to hide internal directories.