Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllOrderDirection = []OrderDirection{ OrderDirectionAsc, OrderDirectionDesc, }
View Source
var DocumentOperationNames = map[string]string{}
Functions ¶
This section is empty.
Types ¶
type CreateTodoInput ¶
type CreateTodoInput struct { // the name of the organization Name string `json:"name"` // An optional description of the organization Description *string `json:"description,omitempty"` }
CreateTodoInput is used for create Todo object. Input was generated by ent.
type OrderDirection ¶
type OrderDirection string
Possible directions in which to order a list of items when provided an `orderBy` argument.
const ( // Specifies an ascending order for a given `orderBy` argument. OrderDirectionAsc OrderDirection = "ASC" // Specifies a descending order for a given `orderBy` argument. OrderDirectionDesc OrderDirection = "DESC" )
func (OrderDirection) IsValid ¶
func (e OrderDirection) IsValid() bool
func (OrderDirection) MarshalGQL ¶
func (e OrderDirection) MarshalGQL(w io.Writer)
func (OrderDirection) String ¶
func (e OrderDirection) String() string
func (*OrderDirection) UnmarshalGQL ¶
func (e *OrderDirection) UnmarshalGQL(v interface{}) error
type PageInfo ¶
type PageInfo struct { // When paginating forwards, are there more items? HasNextPage bool `json:"hasNextPage"` // When paginating backwards, are there more items? HasPreviousPage bool `json:"hasPreviousPage"` // When paginating backwards, the cursor to continue. StartCursor *string `json:"startCursor,omitempty"` // When paginating forwards, the cursor to continue. EndCursor *string `json:"endCursor,omitempty"` }
Information about pagination in a connection. https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
type TemplateClient ¶
type TemplateClient interface { }
func NewClient ¶
func NewClient(cli *http.Client, baseURL string, options *clientv2.Options, interceptors ...clientv2.RequestInterceptor) TemplateClient
type Todo ¶
type TodoCreatePayload ¶
type TodoCreatePayload struct { // Created todo Todo *Todo `json:"todo"` }
Return response for createTodo mutation
type TodoDeletePayload ¶
type TodoDeletePayload struct { // Deleted todo ID DeletedID string `json:"deletedID"` }
Return response for deleteTodo mutation
type TodoUpdatePayload ¶
type TodoUpdatePayload struct { // Updated todo Todo *Todo `json:"todo"` }
Return response for updateTodo mutation
type TodoWhereInput ¶
type TodoWhereInput struct { Not *TodoWhereInput `json:"not,omitempty"` And []*TodoWhereInput `json:"and,omitempty"` Or []*TodoWhereInput `json:"or,omitempty"` // id field predicates ID *string `json:"id,omitempty"` IDNeq *string `json:"idNEQ,omitempty"` IDIn []string `json:"idIn,omitempty"` IDNotIn []string `json:"idNotIn,omitempty"` IDGt *string `json:"idGT,omitempty"` IDGte *string `json:"idGTE,omitempty"` IDLt *string `json:"idLT,omitempty"` IDLte *string `json:"idLTE,omitempty"` IDEqualFold *string `json:"idEqualFold,omitempty"` IDContainsFold *string `json:"idContainsFold,omitempty"` // name field predicates Name *string `json:"name,omitempty"` NameNeq *string `json:"nameNEQ,omitempty"` NameIn []string `json:"nameIn,omitempty"` NameNotIn []string `json:"nameNotIn,omitempty"` NameGt *string `json:"nameGT,omitempty"` NameGte *string `json:"nameGTE,omitempty"` NameLt *string `json:"nameLT,omitempty"` NameLte *string `json:"nameLTE,omitempty"` NameContains *string `json:"nameContains,omitempty"` NameHasPrefix *string `json:"nameHasPrefix,omitempty"` NameHasSuffix *string `json:"nameHasSuffix,omitempty"` NameEqualFold *string `json:"nameEqualFold,omitempty"` NameContainsFold *string `json:"nameContainsFold,omitempty"` // description field predicates Description *string `json:"description,omitempty"` DescriptionNeq *string `json:"descriptionNEQ,omitempty"` DescriptionIn []string `json:"descriptionIn,omitempty"` DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` DescriptionGt *string `json:"descriptionGT,omitempty"` DescriptionGte *string `json:"descriptionGTE,omitempty"` DescriptionLt *string `json:"descriptionLT,omitempty"` DescriptionLte *string `json:"descriptionLTE,omitempty"` DescriptionContains *string `json:"descriptionContains,omitempty"` DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` DescriptionIsNil *bool `json:"descriptionIsNil,omitempty"` DescriptionNotNil *bool `json:"descriptionNotNil,omitempty"` DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` }
TodoWhereInput is used for filtering Todo objects. Input was generated by ent.
type UpdateTodoInput ¶
type UpdateTodoInput struct { // the name of the organization Name *string `json:"name,omitempty"` // An optional description of the organization Description *string `json:"description,omitempty"` ClearDescription *bool `json:"clearDescription,omitempty"` }
UpdateTodoInput is used for update Todo object. Input was generated by ent.
Click to show internal directories.
Click to hide internal directories.