Documentation ¶
Index ¶
- Variables
- type AggregateResult
- type BooleanComparator
- type BooleanListComparator
- type FloatComparator
- type FloatListComparator
- type IntComparator
- type IntListComparator
- type OrderingTypes
- type Person
- type RelationType
- type StringComparator
- type StringListComparator
- type User
- type UserFilterInput
- type UserGroupBy
- type UserMin
- type UserOrdering
- type UsersAggregate
Constants ¶
This section is empty.
Variables ¶
View Source
var AllOrderingTypes = []OrderingTypes{ OrderingTypesAsc, OrderingTypesDesc, OrderingTypesAscNullFirst, OrderingTypesDescNullFirst, OrderingTypesAscNullLast, OrderingTypesDescNullLast, }
View Source
var AllRelationType = []RelationType{ RelationTypeOneToOne, RelationTypeOneToMany, RelationTypeManyToMany, }
View Source
var AllUserGroupBy = []UserGroupBy{ UserGroupByName, UserGroupByAge, }
Functions ¶
This section is empty.
Types ¶
type AggregateResult ¶
type AggregateResult struct {
Count int `json:"count" db:"count"`
}
type BooleanComparator ¶
type BooleanListComparator ¶
type BooleanListComparator struct { Eq []*bool `json:"eq,omitempty" db:"eq"` Neq []*bool `json:"neq,omitempty" db:"neq"` Contains []*bool `json:"contains,omitempty" db:"contains"` Contained []*bool `json:"contained,omitempty" db:"contained"` Overlap []*bool `json:"overlap,omitempty" db:"overlap"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` }
type FloatComparator ¶
type FloatComparator struct { Eq *float64 `json:"eq,omitempty" db:"eq"` Neq *float64 `json:"neq,omitempty" db:"neq"` Gt *float64 `json:"gt,omitempty" db:"gt"` Gte *float64 `json:"gte,omitempty" db:"gte"` Lt *float64 `json:"lt,omitempty" db:"lt"` Lte *float64 `json:"lte,omitempty" db:"lte"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` }
type FloatListComparator ¶
type FloatListComparator struct { Eq []*float64 `json:"eq,omitempty" db:"eq"` Neq []*float64 `json:"neq,omitempty" db:"neq"` Contains []*float64 `json:"contains,omitempty" db:"contains"` Contained []*float64 `json:"contained,omitempty" db:"contained"` Overlap []*float64 `json:"overlap,omitempty" db:"overlap"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` }
type IntComparator ¶
type IntComparator struct { Eq *int `json:"eq,omitempty" db:"eq"` Neq *int `json:"neq,omitempty" db:"neq"` Gt *int `json:"gt,omitempty" db:"gt"` Gte *int `json:"gte,omitempty" db:"gte"` Lt *int `json:"lt,omitempty" db:"lt"` Lte *int `json:"lte,omitempty" db:"lte"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` }
type IntListComparator ¶
type IntListComparator struct { Eq []*int `json:"eq,omitempty" db:"eq"` Neq []*int `json:"neq,omitempty" db:"neq"` Contains []*int `json:"contains,omitempty" db:"contains"` Contained []*int `json:"contained,omitempty" db:"contained"` Overlap []*int `json:"overlap,omitempty" db:"overlap"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` }
type OrderingTypes ¶
type OrderingTypes string
const ( OrderingTypesAsc OrderingTypes = "ASC" OrderingTypesDesc OrderingTypes = "DESC" OrderingTypesAscNullFirst OrderingTypes = "ASC_NULL_FIRST" OrderingTypesDescNullFirst OrderingTypes = "DESC_NULL_FIRST" OrderingTypesAscNullLast OrderingTypes = "ASC_NULL_LAST" OrderingTypesDescNullLast OrderingTypes = "DESC_NULL_LAST" )
func (OrderingTypes) IsValid ¶
func (e OrderingTypes) IsValid() bool
func (OrderingTypes) MarshalGQL ¶
func (e OrderingTypes) MarshalGQL(w io.Writer)
func (OrderingTypes) String ¶
func (e OrderingTypes) String() string
func (*OrderingTypes) UnmarshalGQL ¶
func (e *OrderingTypes) UnmarshalGQL(v interface{}) error
type RelationType ¶
type RelationType string
const ( RelationTypeOneToOne RelationType = "ONE_TO_ONE" RelationTypeOneToMany RelationType = "ONE_TO_MANY" RelationTypeManyToMany RelationType = "MANY_TO_MANY" )
func (RelationType) IsValid ¶
func (e RelationType) IsValid() bool
func (RelationType) MarshalGQL ¶
func (e RelationType) MarshalGQL(w io.Writer)
func (RelationType) String ¶
func (e RelationType) String() string
func (*RelationType) UnmarshalGQL ¶
func (e *RelationType) UnmarshalGQL(v interface{}) error
type StringComparator ¶
type StringComparator struct { Eq *string `json:"eq,omitempty" db:"eq"` Neq *string `json:"neq,omitempty" db:"neq"` Contains []*string `json:"contains,omitempty" db:"contains"` NotContains []*string `json:"notContains,omitempty" db:"not_contains"` Like *string `json:"like,omitempty" db:"like"` Ilike *string `json:"ilike,omitempty" db:"ilike"` Suffix *string `json:"suffix,omitempty" db:"suffix"` Prefix *string `json:"prefix,omitempty" db:"prefix"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` MyCustomOperator string `json:"myCustomOperator" db:"my_custom_operator"` }
type StringListComparator ¶
type StringListComparator struct { Eq []*string `json:"eq,omitempty" db:"eq"` Neq []*string `json:"neq,omitempty" db:"neq"` Contains []*string `json:"contains,omitempty" db:"contains"` ContainedBy []*string `json:"containedBy,omitempty" db:"contained_by"` Overlap []*string `json:"overlap,omitempty" db:"overlap"` IsNull *bool `json:"isNull,omitempty" db:"is_null"` }
type UserFilterInput ¶
type UserFilterInput struct { Name *StringComparator `json:"name,omitempty" db:"name"` Age *IntComparator `json:"age,omitempty" db:"age"` SomeInnerValue *UserFilterInput `json:"someInnerValue,omitempty" db:"some_inner_value"` SomeInnerValueList *UserFilterInput `json:"someInnerValueList,omitempty" db:"some_inner_value_list"` // Logical AND of FilterInput And []*UserFilterInput `json:"AND,omitempty" db:"and"` // Logical OR of FilterInput Or []*UserFilterInput `json:"OR,omitempty" db:"or"` // Logical NOT of FilterInput Not *UserFilterInput `json:"NOT,omitempty" db:"not"` }
type UserGroupBy ¶
type UserGroupBy string
Group by User
const ( // Group by name UserGroupByName UserGroupBy = "NAME" // Group by age UserGroupByAge UserGroupBy = "AGE" )
func (UserGroupBy) IsValid ¶
func (e UserGroupBy) IsValid() bool
func (UserGroupBy) MarshalGQL ¶
func (e UserGroupBy) MarshalGQL(w io.Writer)
func (UserGroupBy) String ¶
func (e UserGroupBy) String() string
func (*UserGroupBy) UnmarshalGQL ¶
func (e *UserGroupBy) UnmarshalGQL(v interface{}) error
type UserMin ¶
type UserMin struct { // Compute the maxiumum for name Name string `json:"name" db:"name"` // Compute the maxiumum for age Age int `json:"age" db:"age"` }
max aggregator for User
type UserOrdering ¶
type UserOrdering struct { // Order User by name Name *OrderingTypes `json:"name,omitempty" db:"name"` // Order User by age Age *OrderingTypes `json:"age,omitempty" db:"age"` }
Ordering for User
type UsersAggregate ¶
type UsersAggregate struct { // Count results Count int `json:"count" db:"count"` // Computes the maximum of the non-null input values. Max *UserMin `json:"max,omitempty" db:"max"` // Computes the minimum of the non-null input values. Min *UserMin `json:"min,omitempty" db:"min"` }
Aggregate User
Click to show internal directories.
Click to hide internal directories.