Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.17.86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type OrderDirection

type OrderDirection string
const (
	OrderDirectionAscending  OrderDirection = "ASCENDING"
	OrderDirectionDescending OrderDirection = "DESCENDING"
)

func (OrderDirection) IsValid

func (e OrderDirection) IsValid() bool

func (OrderDirection) MarshalGQL

func (e OrderDirection) MarshalGQL(w io.Writer)

func (OrderDirection) MarshalJSON

func (e OrderDirection) MarshalJSON() ([]byte, error)

func (OrderDirection) String

func (e OrderDirection) String() string

func (*OrderDirection) UnmarshalGQL

func (e *OrderDirection) UnmarshalGQL(v any) error

func (*OrderDirection) UnmarshalJSON

func (e *OrderDirection) UnmarshalJSON(b []byte) error

type PageInfo

type PageInfo struct {
	HasNextPage     bool   `json:"hasNextPage"`
	HasPreviousPage bool   `json:"hasPreviousPage"`
	StartCursor     string `json:"startCursor"`
	EndCursor       string `json:"endCursor"`
}

type Query

type Query struct {
}

type User

type User struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
}

type UserConnection

type UserConnection struct {
	Edges      []*UserEdge `json:"edges"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type UserEdge

type UserEdge struct {
	Cursor string `json:"cursor"`
	Node   *User  `json:"node"`
}

type UserOrderBy

type UserOrderBy struct {
	OrderByField     UserOrderField `json:"orderByField"`
	OrderByDirection OrderDirection `json:"orderByDirection"`
}

type UserOrderField

type UserOrderField string
const (
	UserOrderFieldFirstName UserOrderField = "FIRST_NAME"
	UserOrderFieldLastName  UserOrderField = "LAST_NAME"
	UserOrderFieldEmail     UserOrderField = "EMAIL"
)

func (UserOrderField) IsValid

func (e UserOrderField) IsValid() bool

func (UserOrderField) MarshalGQL

func (e UserOrderField) MarshalGQL(w io.Writer)

func (UserOrderField) MarshalJSON

func (e UserOrderField) MarshalJSON() ([]byte, error)

func (UserOrderField) String

func (e UserOrderField) String() string

func (*UserOrderField) UnmarshalGQL

func (e *UserOrderField) UnmarshalGQL(v any) error

func (*UserOrderField) UnmarshalJSON

func (e *UserOrderField) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL