Documentation
¶
Index ¶
- Variables
- type AggregateResult
- type BooleanComparator
- type BooleanListComparator
- type FloatComparator
- type FloatListComparator
- type IntComparator
- type IntListComparator
- type OrderingTypes
- type Person
- type Query
- type RelationType
- type StringComparator
- type StringListComparator
- type User
- type UserAvg
- type UserFilterInput
- type UserGroupBy
- type UserMax
- type UserMin
- type UserOrdering
- type UserSum
- type UsersAggregate
- type UsersAggregateAvg
- type UsersAggregateGroupBy
- func (e UsersAggregateGroupBy) IsValid() bool
- func (e UsersAggregateGroupBy) MarshalGQL(w io.Writer)
- func (e UsersAggregateGroupBy) MarshalJSON() ([]byte, error)
- func (e UsersAggregateGroupBy) String() string
- func (e *UsersAggregateGroupBy) UnmarshalGQL(v any) error
- func (e *UsersAggregateGroupBy) UnmarshalJSON(b []byte) error
- type UsersAggregateMax
- type UsersAggregateMin
- type UsersAggregateOrdering
- type UsersAggregateSum
- type UsersAggregatesAggregate
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, }
View Source
var AllUsersAggregateGroupBy = []UsersAggregateGroupBy{ UsersAggregateGroupByGroup, UsersAggregateGroupByCount, }
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) MarshalJSON ¶ added in v0.3.1
func (e OrderingTypes) MarshalJSON() ([]byte, error)
func (OrderingTypes) String ¶
func (e OrderingTypes) String() string
func (*OrderingTypes) UnmarshalGQL ¶
func (e *OrderingTypes) UnmarshalGQL(v any) error
func (*OrderingTypes) UnmarshalJSON ¶ added in v0.3.1
func (e *OrderingTypes) UnmarshalJSON(b []byte) 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) MarshalJSON ¶ added in v0.3.1
func (e RelationType) MarshalJSON() ([]byte, error)
func (RelationType) String ¶
func (e RelationType) String() string
func (*RelationType) UnmarshalGQL ¶
func (e *RelationType) UnmarshalGQL(v any) error
func (*RelationType) UnmarshalJSON ¶ added in v0.3.1
func (e *RelationType) UnmarshalJSON(b []byte) 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 UserAvg ¶ added in v0.3.1
type UserAvg struct {
// Compute the avg for age
Age float64 `json:"age" db:"age"`
}
avg Aggregate
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) MarshalJSON ¶ added in v0.3.1
func (e UserGroupBy) MarshalJSON() ([]byte, error)
func (UserGroupBy) String ¶
func (e UserGroupBy) String() string
func (*UserGroupBy) UnmarshalGQL ¶
func (e *UserGroupBy) UnmarshalGQL(v any) error
func (*UserGroupBy) UnmarshalJSON ¶ added in v0.3.1
func (e *UserGroupBy) UnmarshalJSON(b []byte) error
type UserMax ¶ added in v0.3.1
type UserMax struct {
// Compute the max for name
Name string `json:"name" db:"name"`
// Compute the max for age
Age int `json:"age" db:"age"`
}
max Aggregate
type UserMin ¶
type UserMin struct {
// Compute the min for name
Name string `json:"name" db:"name"`
// Compute the min for age
Age int `json:"age" db:"age"`
}
min Aggregate
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 UserSum ¶ added in v0.3.1
type UserSum struct {
// Compute the sum for age
Age float64 `json:"age" db:"age"`
}
sum Aggregate
type UsersAggregate ¶
type UsersAggregate struct {
// Group
Group map[string]any `json:"group,omitempty" db:"group"`
// Count results
Count int `json:"count" db:"count"`
// Max Aggregate
Max *UserMax `json:"max" db:"max"`
// Min Aggregate
Min *UserMin `json:"min" db:"min"`
// Avg Aggregate
Avg *UserAvg `json:"avg" db:"avg"`
// Sum Aggregate
Sum *UserSum `json:"sum" db:"sum"`
}
Aggregate User
type UsersAggregateAvg ¶ added in v0.3.1
type UsersAggregateAvg struct {
// Compute the avg for count
Count float64 `json:"count" db:"count"`
}
avg Aggregate
type UsersAggregateGroupBy ¶ added in v0.3.1
type UsersAggregateGroupBy string
Group by UsersAggregate
const ( // Group by group UsersAggregateGroupByGroup UsersAggregateGroupBy = "GROUP" // Group by count UsersAggregateGroupByCount UsersAggregateGroupBy = "COUNT" )
func (UsersAggregateGroupBy) IsValid ¶ added in v0.3.1
func (e UsersAggregateGroupBy) IsValid() bool
func (UsersAggregateGroupBy) MarshalGQL ¶ added in v0.3.1
func (e UsersAggregateGroupBy) MarshalGQL(w io.Writer)
func (UsersAggregateGroupBy) MarshalJSON ¶ added in v0.3.1
func (e UsersAggregateGroupBy) MarshalJSON() ([]byte, error)
func (UsersAggregateGroupBy) String ¶ added in v0.3.1
func (e UsersAggregateGroupBy) String() string
func (*UsersAggregateGroupBy) UnmarshalGQL ¶ added in v0.3.1
func (e *UsersAggregateGroupBy) UnmarshalGQL(v any) error
func (*UsersAggregateGroupBy) UnmarshalJSON ¶ added in v0.3.1
func (e *UsersAggregateGroupBy) UnmarshalJSON(b []byte) error
type UsersAggregateMax ¶ added in v0.3.1
type UsersAggregateMax struct {
// Compute the max for count
Count int `json:"count" db:"count"`
}
max Aggregate
type UsersAggregateMin ¶ added in v0.3.1
type UsersAggregateMin struct {
// Compute the min for count
Count int `json:"count" db:"count"`
}
min Aggregate
type UsersAggregateOrdering ¶ added in v0.3.1
type UsersAggregateOrdering struct {
// Order UsersAggregate by group
Group *OrderingTypes `json:"group,omitempty" db:"group"`
// Order UsersAggregate by count
Count *OrderingTypes `json:"count,omitempty" db:"count"`
}
Ordering for UsersAggregate
type UsersAggregateSum ¶ added in v0.3.1
type UsersAggregateSum struct {
// Compute the sum for count
Count float64 `json:"count" db:"count"`
}
sum Aggregate
type UsersAggregatesAggregate ¶ added in v0.3.1
type UsersAggregatesAggregate struct {
// Group
Group map[string]any `json:"group,omitempty" db:"group"`
// Count results
Count int `json:"count" db:"count"`
// Max Aggregate
Max *UsersAggregateMax `json:"max" db:"max"`
// Min Aggregate
Min *UsersAggregateMin `json:"min" db:"min"`
// Avg Aggregate
Avg *UsersAggregateAvg `json:"avg" db:"avg"`
// Sum Aggregate
Sum *UsersAggregateSum `json:"sum" db:"sum"`
}
Aggregate UsersAggregate
Click to show internal directories.
Click to hide internal directories.