Documentation
¶
Index ¶
- Variables
- type AggregateResult
- type BooleanComparator
- type BooleanListComparator
- type CategoriesAggregate
- type Category
- type CategoryFilterInput
- type CategoryMin
- type CategoryOrdering
- type FloatComparator
- type FloatListComparator
- type IntComparator
- type IntListComparator
- type OrderingTypes
- type Post
- type PostFilterInput
- type PostMin
- type PostOrdering
- type PostsAggregate
- type RelationType
- type StringComparator
- type StringListComparator
- type User
- 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, }
Functions ¶
This section is empty.
Types ¶
type AggregateResult ¶
type AggregateResult struct {
Count int `json:"count"`
}
type BooleanComparator ¶
type BooleanListComparator ¶
type CategoriesAggregate ¶
type CategoriesAggregate struct {
// Count results
Count int `json:"count"`
// Computes the maximum of the non-null input values.
Max *CategoryMin `json:"max,omitempty"`
// Computes the minimum of the non-null input values.
Min *CategoryMin `json:"min,omitempty"`
}
Aggregate Category
type CategoryFilterInput ¶
type CategoryFilterInput struct {
ID *IntComparator `json:"id,omitempty"`
Name *StringComparator `json:"name,omitempty"`
// Logical AND of FilterInput
And []*CategoryFilterInput `json:"AND,omitempty"`
// Logical OR of FilterInput
Or []*CategoryFilterInput `json:"OR,omitempty"`
// Logical NOT of FilterInput
Not *CategoryFilterInput `json:"NOT,omitempty"`
}
type CategoryMin ¶
type CategoryMin struct {
// Compute the maxiumum for id
ID int `json:"id"`
// Compute the maxiumum for name
Name string `json:"name"`
}
max aggregator for Category
type CategoryOrdering ¶
type CategoryOrdering struct {
// Order Category by id
ID *OrderingTypes `json:"id,omitempty"`
// Order Category by name
Name *OrderingTypes `json:"name,omitempty"`
}
Ordering for Category
type FloatComparator ¶
type FloatListComparator ¶
type IntComparator ¶
type IntListComparator ¶
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 PostFilterInput ¶
type PostFilterInput struct {
ID *IntComparator `json:"id,omitempty"`
Name *StringComparator `json:"name,omitempty"`
Categories *CategoryFilterInput `json:"categories,omitempty"`
UserID *IntComparator `json:"user_id,omitempty"`
// Logical AND of FilterInput
And []*PostFilterInput `json:"AND,omitempty"`
// Logical OR of FilterInput
Or []*PostFilterInput `json:"OR,omitempty"`
// Logical NOT of FilterInput
Not *PostFilterInput `json:"NOT,omitempty"`
}
type PostMin ¶
type PostMin struct {
// Compute the maxiumum for id
ID int `json:"id"`
// Compute the maxiumum for name
Name string `json:"name"`
// Compute the maxiumum for user_id
UserID int `json:"user_id"`
}
max aggregator for Post
type PostOrdering ¶
type PostOrdering struct {
// Order Post by id
ID *OrderingTypes `json:"id,omitempty"`
// Order Post by name
Name *OrderingTypes `json:"name,omitempty"`
// Order Post by user_id
UserID *OrderingTypes `json:"user_id,omitempty"`
}
Ordering for Post
type PostsAggregate ¶
type PostsAggregate struct {
// Count results
Count int `json:"count"`
// Computes the maximum of the non-null input values.
Max *PostMin `json:"max,omitempty"`
// Computes the minimum of the non-null input values.
Min *PostMin `json:"min,omitempty"`
}
Aggregate Post
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"`
Neq *string `json:"neq,omitempty"`
Contains []*string `json:"contains,omitempty"`
NotContains []*string `json:"notContains,omitempty"`
Like *string `json:"like,omitempty"`
Ilike *string `json:"ilike,omitempty"`
Suffix *string `json:"suffix,omitempty"`
Prefix *string `json:"prefix,omitempty"`
IsNull *bool `json:"isNull,omitempty"`
}
type StringListComparator ¶
type UserMin ¶
type UserMin struct {
// Compute the maxiumum for id
ID int `json:"id"`
// Compute the maxiumum for name
Name string `json:"name"`
}
max aggregator for User
type UserOrdering ¶
type UserOrdering struct {
// Order User by id
ID *OrderingTypes `json:"id,omitempty"`
// Order User by name
Name *OrderingTypes `json:"name,omitempty"`
}
Ordering for User
type UsersAggregate ¶
type UsersAggregate struct {
// Count results
Count int `json:"count"`
// Computes the maximum of the non-null input values.
Max *UserMin `json:"max,omitempty"`
// Computes the minimum of the non-null input values.
Min *UserMin `json:"min,omitempty"`
}
Aggregate User
Click to show internal directories.
Click to hide internal directories.