Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoilerEnum ¶
type BoilerEnum struct {
Name string
ModelName string
ModelFieldKey string
Values []*BoilerEnumValue
}
type BoilerEnumValue ¶
type BoilerEnumValue struct {
Name string
}
type BoilerField ¶
type BoilerModel ¶
type BoilerModel struct {
Name string
TableName string
PluralName string
Fields []*BoilerField
Enums []*BoilerEnum
HasPrimaryStringID bool
HasDeletedAt bool
IsView bool
}
type BoilerType ¶
type ColumnSetting ¶
type ConvertConfig ¶
type EnumValue ¶
type EnumValue struct {
Description string
Name string
NameLower string
BoilerEnumValue *BoilerEnumValue
}
type Field ¶
type Field struct {
Name string
JSONName string
PluralName string
Type string
TypeWithoutPointer string
IsNumberID bool
IsPrimaryNumberID bool
IsPrimaryStringID bool
IsPrimaryID bool
IsRequired bool
IsPlural bool
ConvertConfig ConvertConfig
Enum *Enum
// relation stuff
IsRelation bool
IsRelationAndNotForeignKey bool
IsObject bool
// boiler relation stuff is inside this field
BoilerField BoilerField
// graphql relation ship can be found here
Relationship *Model
IsOr bool
IsAnd bool
IsWithDeleted bool
// Some stuff
Description string
OriginalType types.Type
}
type Model ¶
type Model struct {
Name string
JSONName string
PluralName string
BoilerModel *BoilerModel
HasBoilerModel bool
PrimaryKeyType string
Fields []*Field
IsNormal bool
IsInput bool
IsCreateInput bool
IsUpdateInput bool
IsNormalInput bool
IsPayload bool
IsConnection bool
IsEdge bool
IsOrdering bool
IsWhere bool
IsFilter bool
IsPreloadable bool
PreloadArray []Preload
HasDeletedAt bool
HasPrimaryStringID bool
// other stuff
Description string
PureFields []*ast.FieldDefinition
Implements []string
TableNameResolverName string
}
type Preload ¶
type Preload struct {
Key string
ColumnSetting ColumnSetting
}
Click to show internal directories.
Click to hide internal directories.