package
Version:
v0.0.0-...-d70ac1d
Opens a new window with list of versions in this module.
Published: Jan 15, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type NewTodo struct {
Text string `json:"text"`
UserID string `json:"userId"`
}
type Node interface {
IsNode()
}
type PageInfo struct {
StartCursor string `json:"startCursor"`
EndCursor string `json:"endCursor"`
HasNextPage bool `json:"hasNextPage"`
}
type Todo struct {
ID string `json:"id"`
Text string `json:"text"`
Done bool `json:"done"`
UserID string `json:"user"`
}
type TodoConnection struct {
Edges []*TodoEdge `json:"edges"`
PageInfo *PageInfo `json:"pageInfo"`
}
type TodoEdge struct {
Node *Todo `json:"node"`
Cursor string `json:"cursor"`
}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.