Documentation ¶
Index ¶
- Variables
- type Actor
- type ActorFilterInput
- type ActorMin
- type ActorOrdering
- type ActorsAggregate
- type ActorsPayload
- type AggregateResult
- type BooleanComparator
- type BooleanListComparator
- type Category
- type CategoryFilterInput
- type CreateActorInput
- type Film
- type FilmCategoriesAggregate
- type FilmCategory
- type FilmCategoryMin
- type FilmCategoryOrdering
- type FilmFilterInput
- type FilmMin
- type FilmOrdering
- type FilmsAggregate
- type IntComparator
- type IntListComparator
- type Language
- type LanguageFilterInput
- type LanguageMin
- type LanguageOrdering
- type LanguagesAggregate
- type Movie
- type OrderingTypes
- type RelationType
- type StringComparator
- type StringListComparator
- type Stuff
- type StuffFilterInput
- type StuffMin
- type StuffOrdering
- type StuffsAggregate
Constants ¶
This section is empty.
Variables ¶
View Source
var AllOrderingTypes = []OrderingTypes{ OrderingTypesAsc, OrderingTypesDesc, OrderingTypesAscNullFirst, OrderingTypesDescNullFirst, }
View Source
var AllRelationType = []RelationType{ RelationTypeOneToOne, RelationTypeOneToMany, RelationTypeManyToMany, }
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct { ActorID int `json:"actorId" db:"actorId"` FirstName string `json:"firstName" db:"firstName"` LastName string `json:"lastName" db:"lastName"` LastUpdate string `json:"lastUpdate" db:"lastUpdate"` Films []*Film `json:"films" db:"films"` // films Aggregate FilmsAggregate *FilmsAggregate `json:"_filmsAggregate" db:"_filmsAggregate"` }
type ActorFilterInput ¶
type ActorFilterInput struct { ActorID *IntComparator `json:"actorId" db:"actorId"` FirstName *StringComparator `json:"firstName" db:"firstName"` LastName *StringComparator `json:"lastName" db:"lastName"` LastUpdate *StringComparator `json:"lastUpdate" db:"lastUpdate"` Films *FilmFilterInput `json:"films" db:"films"` // Logical AND of FilterInput And []*ActorFilterInput `json:"AND" db:"AND"` // Logical OR of FilterInput Or []*ActorFilterInput `json:"OR" db:"OR"` // Logical NOT of FilterInput Not *ActorFilterInput `json:"NOT" db:"NOT"` }
type ActorMin ¶
type ActorMin struct { // Compute the maxiumum for actorId ActorID int `json:"actorId" db:"actorId"` // Compute the maxiumum for firstName FirstName string `json:"firstName" db:"firstName"` // Compute the maxiumum for lastName LastName string `json:"lastName" db:"lastName"` // Compute the maxiumum for lastUpdate LastUpdate string `json:"lastUpdate" db:"lastUpdate"` }
max aggregator for Actor
type ActorOrdering ¶
type ActorOrdering struct { // Order Actor by actorId ActorID *OrderingTypes `json:"actorId" db:"actorId"` // Order Actor by firstName FirstName *OrderingTypes `json:"firstName" db:"firstName"` // Order Actor by lastName LastName *OrderingTypes `json:"lastName" db:"lastName"` // Order Actor by lastUpdate LastUpdate *OrderingTypes `json:"lastUpdate" db:"lastUpdate"` }
Ordering for Actor
type ActorsAggregate ¶
type ActorsAggregate struct { // Count results Count int `json:"count" db:"count"` // Computes the maximum of the non-null input values. Max *ActorMin `json:"max" db:"max"` // Computes the minimum of the non-null input values. Min *ActorMin `json:"min" db:"min"` }
Aggregate Actor
type ActorsPayload ¶
type ActorsPayload struct { // rows affection by mutation RowsAffected int `json:"rows_affected" db:"rows_affected"` Actors []*Actor `json:"actors" db:"actors"` }
Autogenerated payload object
type AggregateResult ¶
type AggregateResult struct {
Count int `json:"count" db:"count"`
}
type BooleanComparator ¶
type BooleanListComparator ¶
type CategoryFilterInput ¶
type CategoryFilterInput struct { CategoryID *IntComparator `json:"categoryId" db:"categoryId"` Name *StringComparator `json:"name" db:"name"` LastUpdate *StringComparator `json:"lastUpdate" db:"lastUpdate"` Films *FilmFilterInput `json:"films" db:"films"` // Logical AND of FilterInput And []*CategoryFilterInput `json:"AND" db:"AND"` // Logical OR of FilterInput Or []*CategoryFilterInput `json:"OR" db:"OR"` // Logical NOT of FilterInput Not *CategoryFilterInput `json:"NOT" db:"NOT"` }
type CreateActorInput ¶
type CreateActorInput struct { ActorID int `json:"actorId" db:"actorId"` FirstName string `json:"firstName" db:"firstName"` LastName string `json:"lastName" db:"lastName"` LastUpdate string `json:"lastUpdate" db:"lastUpdate"` }
AutoGenerated input for Actor
type Film ¶
type Film struct { FilmID int `json:"filmId" db:"filmId"` Title string `json:"title" db:"title"` Description string `json:"description" db:"description"` RentalDuration string `json:"rentalDuration" db:"rentalDuration"` RentalRate float64 `json:"rentalRate" db:"rentalRate"` Length int `json:"length" db:"length"` ReplacementCost float64 `json:"replacementCost" db:"replacementCost"` Rating int `json:"rating" db:"rating"` LastUpdate string `json:"lastUpdate" db:"lastUpdate"` SpecialFeatures []*string `json:"specialFeatures" db:"specialFeatures"` Fulltext string `json:"fulltext" db:"fulltext"` Categories []*FilmCategory `json:"categories" db:"categories"` Language *Language `json:"language" db:"language"` Actors []*Actor `json:"actors" db:"actors"` // categories Aggregate CategoriesAggregate *FilmCategoriesAggregate `json:"_categoriesAggregate" db:"_categoriesAggregate"` // actors Aggregate ActorsAggregate *ActorsAggregate `json:"_actorsAggregate" db:"_actorsAggregate"` }
type FilmCategoriesAggregate ¶
type FilmCategoriesAggregate struct { // Count results Count int `json:"count" db:"count"` // Computes the maximum of the non-null input values. Max *FilmCategoryMin `json:"max" db:"max"` // Computes the minimum of the non-null input values. Min *FilmCategoryMin `json:"min" db:"min"` }
Aggregate FilmCategory
type FilmCategory ¶
type FilmCategoryMin ¶
type FilmCategoryMin struct { // Compute the maxiumum for lastUpdate LastUpdate string `json:"lastUpdate" db:"lastUpdate"` }
max aggregator for FilmCategory
type FilmCategoryOrdering ¶
type FilmCategoryOrdering struct { // Order FilmCategory by lastUpdate LastUpdate *OrderingTypes `json:"lastUpdate" db:"lastUpdate"` }
Ordering for FilmCategory
type FilmFilterInput ¶
type FilmFilterInput struct { FilmID *IntComparator `json:"filmId" db:"filmId"` Title *StringComparator `json:"title" db:"title"` Description *StringComparator `json:"description" db:"description"` RentalDuration *StringComparator `json:"rentalDuration" db:"rentalDuration"` Length *IntComparator `json:"length" db:"length"` Rating *IntComparator `json:"rating" db:"rating"` LastUpdate *StringComparator `json:"lastUpdate" db:"lastUpdate"` SpecialFeatures *StringListComparator `json:"specialFeatures" db:"specialFeatures"` Fulltext *StringComparator `json:"fulltext" db:"fulltext"` Language *LanguageFilterInput `json:"language" db:"language"` Actors *ActorFilterInput `json:"actors" db:"actors"` // Logical AND of FilterInput And []*FilmFilterInput `json:"AND" db:"AND"` // Logical OR of FilterInput Or []*FilmFilterInput `json:"OR" db:"OR"` // Logical NOT of FilterInput Not *FilmFilterInput `json:"NOT" db:"NOT"` }
type FilmMin ¶
type FilmMin struct { // Compute the maxiumum for filmId FilmID int `json:"filmId" db:"filmId"` // Compute the maxiumum for title Title string `json:"title" db:"title"` // Compute the maxiumum for description Description string `json:"description" db:"description"` // Compute the maxiumum for rentalDuration RentalDuration string `json:"rentalDuration" db:"rentalDuration"` // Compute the maxiumum for rentalRate RentalRate float64 `json:"rentalRate" db:"rentalRate"` // Compute the maxiumum for length Length int `json:"length" db:"length"` // Compute the maxiumum for replacementCost ReplacementCost float64 `json:"replacementCost" db:"replacementCost"` // Compute the maxiumum for rating Rating int `json:"rating" db:"rating"` // Compute the maxiumum for lastUpdate LastUpdate string `json:"lastUpdate" db:"lastUpdate"` // Compute the maxiumum for fulltext Fulltext string `json:"fulltext" db:"fulltext"` }
max aggregator for Film
type FilmOrdering ¶
type FilmOrdering struct { // Order Film by filmId FilmID *OrderingTypes `json:"filmId" db:"filmId"` // Order Film by title Title *OrderingTypes `json:"title" db:"title"` // Order Film by description Description *OrderingTypes `json:"description" db:"description"` // Order Film by rentalDuration RentalDuration *OrderingTypes `json:"rentalDuration" db:"rentalDuration"` // Order Film by rentalRate RentalRate *OrderingTypes `json:"rentalRate" db:"rentalRate"` // Order Film by length Length *OrderingTypes `json:"length" db:"length"` // Order Film by replacementCost ReplacementCost *OrderingTypes `json:"replacementCost" db:"replacementCost"` // Order Film by rating Rating *OrderingTypes `json:"rating" db:"rating"` // Order Film by lastUpdate LastUpdate *OrderingTypes `json:"lastUpdate" db:"lastUpdate"` // Order Film by specialFeatures SpecialFeatures *OrderingTypes `json:"specialFeatures" db:"specialFeatures"` // Order Film by fulltext Fulltext *OrderingTypes `json:"fulltext" db:"fulltext"` }
Ordering for Film
type FilmsAggregate ¶
type FilmsAggregate struct { // Count results Count int `json:"count" db:"count"` // Computes the maximum of the non-null input values. Max *FilmMin `json:"max" db:"max"` // Computes the minimum of the non-null input values. Min *FilmMin `json:"min" db:"min"` }
Aggregate Film
type IntComparator ¶
type IntListComparator ¶
type Language ¶
type Language struct { LanguageID int `json:"languageId" db:"languageId"` Name string `json:"name" db:"name"` LastUpdate string `json:"lastUpdate" db:"lastUpdate"` // Get all flims by language Films []*Film `json:"films" db:"films"` Stuff []*Stuff `json:"stuff" db:"stuff"` // films Aggregate FilmsAggregate *FilmsAggregate `json:"_filmsAggregate" db:"_filmsAggregate"` // stuff Aggregate StuffAggregate *StuffsAggregate `json:"_stuffAggregate" db:"_stuffAggregate"` }
type LanguageFilterInput ¶
type LanguageFilterInput struct { LanguageID *IntComparator `json:"languageId" db:"languageId"` Name *StringComparator `json:"name" db:"name"` LastUpdate *StringComparator `json:"lastUpdate" db:"lastUpdate"` Films *FilmFilterInput `json:"films" db:"films"` Stuff *StuffFilterInput `json:"stuff" db:"stuff"` // Logical AND of FilterInput And []*LanguageFilterInput `json:"AND" db:"AND"` // Logical OR of FilterInput Or []*LanguageFilterInput `json:"OR" db:"OR"` // Logical NOT of FilterInput Not *LanguageFilterInput `json:"NOT" db:"NOT"` }
type LanguageMin ¶
type LanguageMin struct { // Compute the maxiumum for languageId LanguageID int `json:"languageId" db:"languageId"` // Compute the maxiumum for name Name string `json:"name" db:"name"` // Compute the maxiumum for lastUpdate LastUpdate string `json:"lastUpdate" db:"lastUpdate"` }
max aggregator for Language
type LanguageOrdering ¶
type LanguageOrdering struct { // Order Language by languageId LanguageID *OrderingTypes `json:"languageId" db:"languageId"` // Order Language by name Name *OrderingTypes `json:"name" db:"name"` // Order Language by lastUpdate LastUpdate *OrderingTypes `json:"lastUpdate" db:"lastUpdate"` }
Ordering for Language
type LanguagesAggregate ¶
type LanguagesAggregate struct { // Count results Count int `json:"count" db:"count"` // Computes the maximum of the non-null input values. Max *LanguageMin `json:"max" db:"max"` // Computes the minimum of the non-null input values. Min *LanguageMin `json:"min" db:"min"` }
Aggregate Language
type Movie ¶
type Movie struct { Actors []*Actor `json:"actors" db:"actors"` // actors Aggregate ActorsAggregate *ActorsAggregate `json:"_actorsAggregate" db:"_actorsAggregate"` }
Wrapper objects don't do anything that act like query
type OrderingTypes ¶
type OrderingTypes string
const ( OrderingTypesAsc OrderingTypes = "ASC" OrderingTypesDesc OrderingTypes = "DESC" OrderingTypesAscNullFirst OrderingTypes = "ASC_NULL_FIRST" OrderingTypesDescNullFirst OrderingTypes = "DESC_NULL_FIRST" )
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" db:"eq"` Neq *string `json:"neq" db:"neq"` Contains []*string `json:"contains" db:"contains"` NotContains []*string `json:"not_contains" db:"not_contains"` Like *string `json:"like" db:"like"` Ilike *string `json:"ilike" db:"ilike"` Suffix *string `json:"suffix" db:"suffix"` Prefix *string `json:"prefix" db:"prefix"` IsNull *bool `json:"isNull" db:"isNull"` }
type StringListComparator ¶
type StringListComparator struct { Eq []*string `json:"eq" db:"eq"` Neq []*string `json:"neq" db:"neq"` Contains []*string `json:"contains" db:"contains"` ContainedBy []*string `json:"containedBy" db:"containedBy"` Overlap []*string `json:"overlap" db:"overlap"` IsNull *bool `json:"isNull" db:"isNull"` }
type StuffFilterInput ¶
type StuffFilterInput struct { Name *StringComparator `json:"name" db:"name"` LanguageID *StringComparator `json:"languageId" db:"languageId"` // Logical AND of FilterInput And []*StuffFilterInput `json:"AND" db:"AND"` // Logical OR of FilterInput Or []*StuffFilterInput `json:"OR" db:"OR"` // Logical NOT of FilterInput Not *StuffFilterInput `json:"NOT" db:"NOT"` }
type StuffMin ¶
type StuffMin struct { // Compute the maxiumum for name Name string `json:"name" db:"name"` // Compute the maxiumum for languageId LanguageID string `json:"languageId" db:"languageId"` }
max aggregator for Stuff
type StuffOrdering ¶
type StuffOrdering struct { // Order Stuff by name Name *OrderingTypes `json:"name" db:"name"` // Order Stuff by languageId LanguageID *OrderingTypes `json:"languageId" db:"languageId"` }
Ordering for Stuff
type StuffsAggregate ¶
type StuffsAggregate struct { // Count results Count int `json:"count" db:"count"` // Computes the maximum of the non-null input values. Max *StuffMin `json:"max" db:"max"` // Computes the minimum of the non-null input values. Min *StuffMin `json:"min" db:"min"` }
Aggregate Stuff
Click to show internal directories.
Click to hide internal directories.