Documentation
¶
Index ¶
- Variables
- type AggregateResult
- type BooleanComparator
- type BooleanListComparator
- type CategoriesAggregate
- type CategoriesAggregateAvg
- type CategoriesAggregateGroupBy
- func (e CategoriesAggregateGroupBy) IsValid() bool
- func (e CategoriesAggregateGroupBy) MarshalGQL(w io.Writer)
- func (e CategoriesAggregateGroupBy) MarshalJSON() ([]byte, error)
- func (e CategoriesAggregateGroupBy) String() string
- func (e *CategoriesAggregateGroupBy) UnmarshalGQL(v any) error
- func (e *CategoriesAggregateGroupBy) UnmarshalJSON(b []byte) error
- type CategoriesAggregateMax
- type CategoriesAggregateMin
- type CategoriesAggregateOrdering
- type CategoriesAggregateSum
- type CategoriesAggregatesAggregate
- type Category
- type CategoryAvg
- type CategoryFilterInput
- type CategoryGroupBy
- type CategoryMax
- type CategoryMin
- type CategoryOrdering
- type CategorySum
- type FloatComparator
- type FloatListComparator
- type IntComparator
- type IntListComparator
- type OrderingTypes
- type Post
- type PostAvg
- type PostFilterInput
- type PostGroupBy
- type PostMax
- type PostMin
- type PostOrdering
- type PostSum
- type PostsAggregate
- type PostsAggregateAvg
- type PostsAggregateGroupBy
- func (e PostsAggregateGroupBy) IsValid() bool
- func (e PostsAggregateGroupBy) MarshalGQL(w io.Writer)
- func (e PostsAggregateGroupBy) MarshalJSON() ([]byte, error)
- func (e PostsAggregateGroupBy) String() string
- func (e *PostsAggregateGroupBy) UnmarshalGQL(v any) error
- func (e *PostsAggregateGroupBy) UnmarshalJSON(b []byte) error
- type PostsAggregateMax
- type PostsAggregateMin
- type PostsAggregateOrdering
- type PostsAggregateSum
- type PostsAggregatesAggregate
- type Query
- type RelationType
- type StringComparator
- type StringListComparator
- type User
- type UserFilterInput
- type UserGroupBy
- type UserMin
- type UserOrdering
- 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 ¶
var AllCategoriesAggregateGroupBy = []CategoriesAggregateGroupBy{ CategoriesAggregateGroupByGroup, CategoriesAggregateGroupByCount, }
var AllCategoryGroupBy = []CategoryGroupBy{ CategoryGroupByID, CategoryGroupByName, }
var AllOrderingTypes = []OrderingTypes{ OrderingTypesAsc, OrderingTypesDesc, OrderingTypesAscNullFirst, OrderingTypesDescNullFirst, OrderingTypesAscNullLast, OrderingTypesDescNullLast, }
var AllPostGroupBy = []PostGroupBy{ PostGroupByID, PostGroupByName, }
var AllPostsAggregateGroupBy = []PostsAggregateGroupBy{ PostsAggregateGroupByGroup, PostsAggregateGroupByCount, }
var AllRelationType = []RelationType{ RelationTypeOneToOne, RelationTypeOneToMany, RelationTypeManyToMany, }
var AllUserGroupBy = []UserGroupBy{ UserGroupByName, UserGroupByAge, }
var AllUsersAggregateGroupBy = []UsersAggregateGroupBy{ 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 CategoriesAggregate ¶
type CategoriesAggregate struct {
// Group
Group map[string]any `json:"group,omitempty" db:"group"`
// Count results
Count int `json:"count" db:"count"`
// Max Aggregate
Max *CategoryMax `json:"max" db:"max"`
// Min Aggregate
Min *CategoryMin `json:"min" db:"min"`
// Avg Aggregate
Avg *CategoryAvg `json:"avg" db:"avg"`
// Sum Aggregate
Sum *CategorySum `json:"sum" db:"sum"`
}
Aggregate Category
type CategoriesAggregateAvg ¶ added in v0.3.1
type CategoriesAggregateAvg struct {
// Compute the avg for count
Count float64 `json:"count" db:"count"`
}
avg Aggregate
type CategoriesAggregateGroupBy ¶ added in v0.3.1
type CategoriesAggregateGroupBy string
Group by CategoriesAggregate
const ( // Group by group CategoriesAggregateGroupByGroup CategoriesAggregateGroupBy = "GROUP" // Group by count CategoriesAggregateGroupByCount CategoriesAggregateGroupBy = "COUNT" )
func (CategoriesAggregateGroupBy) IsValid ¶ added in v0.3.1
func (e CategoriesAggregateGroupBy) IsValid() bool
func (CategoriesAggregateGroupBy) MarshalGQL ¶ added in v0.3.1
func (e CategoriesAggregateGroupBy) MarshalGQL(w io.Writer)
func (CategoriesAggregateGroupBy) MarshalJSON ¶ added in v0.3.1
func (e CategoriesAggregateGroupBy) MarshalJSON() ([]byte, error)
func (CategoriesAggregateGroupBy) String ¶ added in v0.3.1
func (e CategoriesAggregateGroupBy) String() string
func (*CategoriesAggregateGroupBy) UnmarshalGQL ¶ added in v0.3.1
func (e *CategoriesAggregateGroupBy) UnmarshalGQL(v any) error
func (*CategoriesAggregateGroupBy) UnmarshalJSON ¶ added in v0.3.1
func (e *CategoriesAggregateGroupBy) UnmarshalJSON(b []byte) error
type CategoriesAggregateMax ¶ added in v0.3.1
type CategoriesAggregateMax struct {
// Compute the max for count
Count int `json:"count" db:"count"`
}
max Aggregate
type CategoriesAggregateMin ¶ added in v0.3.1
type CategoriesAggregateMin struct {
// Compute the min for count
Count int `json:"count" db:"count"`
}
min Aggregate
type CategoriesAggregateOrdering ¶ added in v0.3.1
type CategoriesAggregateOrdering struct {
// Order CategoriesAggregate by group
Group *OrderingTypes `json:"group,omitempty" db:"group"`
// Order CategoriesAggregate by count
Count *OrderingTypes `json:"count,omitempty" db:"count"`
}
Ordering for CategoriesAggregate
type CategoriesAggregateSum ¶ added in v0.3.1
type CategoriesAggregateSum struct {
// Compute the sum for count
Count float64 `json:"count" db:"count"`
}
sum Aggregate
type CategoriesAggregatesAggregate ¶ added in v0.3.1
type CategoriesAggregatesAggregate struct {
// Group
Group map[string]any `json:"group,omitempty" db:"group"`
// Count results
Count int `json:"count" db:"count"`
// Max Aggregate
Max *CategoriesAggregateMax `json:"max" db:"max"`
// Min Aggregate
Min *CategoriesAggregateMin `json:"min" db:"min"`
// Avg Aggregate
Avg *CategoriesAggregateAvg `json:"avg" db:"avg"`
// Sum Aggregate
Sum *CategoriesAggregateSum `json:"sum" db:"sum"`
}
Aggregate CategoriesAggregate
type CategoryAvg ¶
type CategoryAvg struct {
// Compute the avg for id
ID float64 `json:"id" db:"id"`
}
avg Aggregate
type CategoryFilterInput ¶
type CategoryFilterInput struct {
ID *IntComparator `json:"id,omitempty" db:"id"`
Name *StringComparator `json:"name,omitempty" db:"name"`
// Logical AND of FilterInput
And []*CategoryFilterInput `json:"AND,omitempty" db:"and"`
// Logical OR of FilterInput
Or []*CategoryFilterInput `json:"OR,omitempty" db:"or"`
// Logical NOT of FilterInput
Not *CategoryFilterInput `json:"NOT,omitempty" db:"not"`
}
type CategoryGroupBy ¶
type CategoryGroupBy string
Group by Category
const ( // Group by id CategoryGroupByID CategoryGroupBy = "ID" // Group by name CategoryGroupByName CategoryGroupBy = "NAME" )
func (CategoryGroupBy) IsValid ¶
func (e CategoryGroupBy) IsValid() bool
func (CategoryGroupBy) MarshalGQL ¶
func (e CategoryGroupBy) MarshalGQL(w io.Writer)
func (CategoryGroupBy) MarshalJSON ¶ added in v0.3.1
func (e CategoryGroupBy) MarshalJSON() ([]byte, error)
func (CategoryGroupBy) String ¶
func (e CategoryGroupBy) String() string
func (*CategoryGroupBy) UnmarshalGQL ¶
func (e *CategoryGroupBy) UnmarshalGQL(v any) error
func (*CategoryGroupBy) UnmarshalJSON ¶ added in v0.3.1
func (e *CategoryGroupBy) UnmarshalJSON(b []byte) error
type CategoryMax ¶
type CategoryMax struct {
// Compute the max for id
ID int `json:"id" db:"id"`
// Compute the max for name
Name string `json:"name" db:"name"`
}
max Aggregate
type CategoryMin ¶
type CategoryMin struct {
// Compute the min for id
ID int `json:"id" db:"id"`
// Compute the min for name
Name string `json:"name" db:"name"`
}
min Aggregate
type CategoryOrdering ¶
type CategoryOrdering struct {
// Order Category by id
ID *OrderingTypes `json:"id,omitempty" db:"id"`
// Order Category by name
Name *OrderingTypes `json:"name,omitempty" db:"name"`
}
Ordering for Category
type CategorySum ¶
type CategorySum struct {
// Compute the sum for id
ID float64 `json:"id" db:"id"`
}
sum Aggregate
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 Post ¶
type Post struct {
ID int `json:"id" db:"id"`
Name *string `json:"name,omitempty" db:"name"`
Categories []*Category `json:"categories,omitempty" db:"categories"`
User *User `json:"user,omitempty" db:"user"`
// categories Aggregate
CategoriesAggregate []CategoriesAggregate `json:"_categoriesAggregate" db:"_categories_aggregate"`
// user Aggregate
UserAggregate []UsersAggregate `json:"_userAggregate" db:"_user_aggregate"`
}
type PostAvg ¶
type PostAvg struct {
// Compute the avg for id
ID float64 `json:"id" db:"id"`
}
avg Aggregate
type PostFilterInput ¶
type PostFilterInput struct {
ID *IntComparator `json:"id,omitempty" db:"id"`
Name *StringComparator `json:"name,omitempty" db:"name"`
Categories *CategoryFilterInput `json:"categories,omitempty" db:"categories"`
User *UserFilterInput `json:"user,omitempty" db:"user"`
// Logical AND of FilterInput
And []*PostFilterInput `json:"AND,omitempty" db:"and"`
// Logical OR of FilterInput
Or []*PostFilterInput `json:"OR,omitempty" db:"or"`
// Logical NOT of FilterInput
Not *PostFilterInput `json:"NOT,omitempty" db:"not"`
}
type PostGroupBy ¶
type PostGroupBy string
Group by Post
const ( // Group by id PostGroupByID PostGroupBy = "ID" // Group by name PostGroupByName PostGroupBy = "NAME" )
func (PostGroupBy) IsValid ¶
func (e PostGroupBy) IsValid() bool
func (PostGroupBy) MarshalGQL ¶
func (e PostGroupBy) MarshalGQL(w io.Writer)
func (PostGroupBy) MarshalJSON ¶ added in v0.3.1
func (e PostGroupBy) MarshalJSON() ([]byte, error)
func (PostGroupBy) String ¶
func (e PostGroupBy) String() string
func (*PostGroupBy) UnmarshalGQL ¶
func (e *PostGroupBy) UnmarshalGQL(v any) error
func (*PostGroupBy) UnmarshalJSON ¶ added in v0.3.1
func (e *PostGroupBy) UnmarshalJSON(b []byte) error
type PostMax ¶
type PostMax struct {
// Compute the max for id
ID int `json:"id" db:"id"`
// Compute the max for name
Name string `json:"name" db:"name"`
}
max Aggregate
type PostMin ¶
type PostMin struct {
// Compute the min for id
ID int `json:"id" db:"id"`
// Compute the min for name
Name string `json:"name" db:"name"`
}
min Aggregate
type PostOrdering ¶
type PostOrdering struct {
// Order Post by id
ID *OrderingTypes `json:"id,omitempty" db:"id"`
// Order Post by name
Name *OrderingTypes `json:"name,omitempty" db:"name"`
}
Ordering for Post
type PostSum ¶
type PostSum struct {
// Compute the sum for id
ID float64 `json:"id" db:"id"`
}
sum Aggregate
type PostsAggregate ¶
type PostsAggregate struct {
// Group
Group map[string]any `json:"group,omitempty" db:"group"`
// Count results
Count int `json:"count" db:"count"`
// Max Aggregate
Max *PostMax `json:"max" db:"max"`
// Min Aggregate
Min *PostMin `json:"min" db:"min"`
// Avg Aggregate
Avg *PostAvg `json:"avg" db:"avg"`
// Sum Aggregate
Sum *PostSum `json:"sum" db:"sum"`
}
Aggregate Post
type PostsAggregateAvg ¶ added in v0.3.1
type PostsAggregateAvg struct {
// Compute the avg for count
Count float64 `json:"count" db:"count"`
}
avg Aggregate
type PostsAggregateGroupBy ¶ added in v0.3.1
type PostsAggregateGroupBy string
Group by PostsAggregate
const ( // Group by group PostsAggregateGroupByGroup PostsAggregateGroupBy = "GROUP" // Group by count PostsAggregateGroupByCount PostsAggregateGroupBy = "COUNT" )
func (PostsAggregateGroupBy) IsValid ¶ added in v0.3.1
func (e PostsAggregateGroupBy) IsValid() bool
func (PostsAggregateGroupBy) MarshalGQL ¶ added in v0.3.1
func (e PostsAggregateGroupBy) MarshalGQL(w io.Writer)
func (PostsAggregateGroupBy) MarshalJSON ¶ added in v0.3.1
func (e PostsAggregateGroupBy) MarshalJSON() ([]byte, error)
func (PostsAggregateGroupBy) String ¶ added in v0.3.1
func (e PostsAggregateGroupBy) String() string
func (*PostsAggregateGroupBy) UnmarshalGQL ¶ added in v0.3.1
func (e *PostsAggregateGroupBy) UnmarshalGQL(v any) error
func (*PostsAggregateGroupBy) UnmarshalJSON ¶ added in v0.3.1
func (e *PostsAggregateGroupBy) UnmarshalJSON(b []byte) error
type PostsAggregateMax ¶ added in v0.3.1
type PostsAggregateMax struct {
// Compute the max for count
Count int `json:"count" db:"count"`
}
max Aggregate
type PostsAggregateMin ¶ added in v0.3.1
type PostsAggregateMin struct {
// Compute the min for count
Count int `json:"count" db:"count"`
}
min Aggregate
type PostsAggregateOrdering ¶ added in v0.3.1
type PostsAggregateOrdering struct {
// Order PostsAggregate by group
Group *OrderingTypes `json:"group,omitempty" db:"group"`
// Order PostsAggregate by count
Count *OrderingTypes `json:"count,omitempty" db:"count"`
}
Ordering for PostsAggregate
type PostsAggregateSum ¶ added in v0.3.1
type PostsAggregateSum struct {
// Compute the sum for count
Count float64 `json:"count" db:"count"`
}
sum Aggregate
type PostsAggregatesAggregate ¶ added in v0.3.1
type PostsAggregatesAggregate struct {
// Group
Group map[string]any `json:"group,omitempty" db:"group"`
// Count results
Count int `json:"count" db:"count"`
// Max Aggregate
Max *PostsAggregateMax `json:"max" db:"max"`
// Min Aggregate
Min *PostsAggregateMin `json:"min" db:"min"`
// Avg Aggregate
Avg *PostsAggregateAvg `json:"avg" db:"avg"`
// Sum Aggregate
Sum *PostsAggregateSum `json:"sum" db:"sum"`
}
Aggregate PostsAggregate
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"`
}
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 {
ID *IntComparator `json:"id,omitempty" db:"id"`
Name *StringComparator `json:"name,omitempty" db:"name"`
Posts *PostFilterInput `json:"posts,omitempty" db:"posts"`
// 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 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 id
ID *OrderingTypes `json:"id,omitempty" db:"id"`
// Order User by name
Name *OrderingTypes `json:"name,omitempty" db:"name"`
}
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
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 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 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