Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type BooleanFilter
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type FloatFilter
- type IDFilter
- type IntFilter
- type Node
- type PageInfo
- type QueryResolver
- type ResolverRoot
- type StringFilter
- type User
- type UserConnection
- type UserEdge
- type UserFilter
- type UserOrdering
- type UserSort
- type UserWhere
Constants ¶
This section is empty.
Variables ¶
View Source
var AllUserSort = []UserSort{ UserSortID, UserSortFirstName, UserSortLastName, UserSortAge, UserSortEmail, }
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type BooleanFilter ¶
type ComplexityRoot ¶
type ComplexityRoot struct { PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } Query struct { Node func(childComplexity int, id string) int User func(childComplexity int, id string) int Users func(childComplexity int, first int, after *string, ordering []*UserOrdering, filter *UserFilter) int } User struct { Age func(childComplexity int) int Email func(childComplexity int) int FirstName func(childComplexity int) int ID func(childComplexity int) int LastName func(childComplexity int) int } UserConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } UserEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type FloatFilter ¶
type FloatFilter struct { EqualTo *float64 `json:"equalTo"` NotEqualTo *float64 `json:"notEqualTo"` LessThan *float64 `json:"lessThan"` LessThanOrEqualTo *float64 `json:"lessThanOrEqualTo"` MoreThan *float64 `json:"moreThan"` MoreThanOrEqualTo *float64 `json:"moreThanOrEqualTo"` In []float64 `json:"in"` NotIn []float64 `json:"notIn"` }
type IntFilter ¶
type IntFilter struct { EqualTo *int `json:"equalTo"` NotEqualTo *int `json:"notEqualTo"` LessThan *int `json:"lessThan"` LessThanOrEqualTo *int `json:"lessThanOrEqualTo"` MoreThan *int `json:"moreThan"` MoreThanOrEqualTo *int `json:"moreThanOrEqualTo"` In []int `json:"in"` NotIn []int `json:"notIn"` }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
type StringFilter ¶
type StringFilter struct { EqualTo *string `json:"equalTo"` NotEqualTo *string `json:"notEqualTo"` In []string `json:"in"` NotIn []string `json:"notIn"` StartWith *string `json:"startWith"` NotStartWith *string `json:"notStartWith"` EndWith *string `json:"endWith"` NotEndWith *string `json:"notEndWith"` Contain *string `json:"contain"` NotContain *string `json:"notContain"` StartWithStrict *string `json:"startWithStrict"` NotStartWithStrict *string `json:"notStartWithStrict"` EndWithStrict *string `json:"endWithStrict"` NotEndWithStrict *string `json:"notEndWithStrict"` ContainStrict *string `json:"containStrict"` NotContainStrict *string `json:"notContainStrict"` }
type User ¶
type UserConnection ¶
type UserFilter ¶
type UserOrdering ¶
type UserOrdering struct { Sort UserSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type UserWhere ¶
type UserWhere struct { ID *IDFilter `json:"id"` FirstName *StringFilter `json:"firstName"` LastName *StringFilter `json:"lastName"` Age *IntFilter `json:"age"` Email *StringFilter `json:"email"` Or *UserWhere `json:"or"` And *UserWhere `json:"and"` }
Click to show internal directories.
Click to hide internal directories.