Documentation ¶
Index ¶
- Variables
- type EnumWithDescription
- type ExistingEnum
- type ExistingInput
- type ExistingInterface
- type ExistingModel
- type ExistingType
- type ExistingUnion
- type FieldMutationHook
- type FooBarer
- type FooBarr
- type InterfaceWithDescription
- type MissingEnum
- type MissingInput
- type MissingInterface
- type MissingTypeNotNull
- type MissingTypeNullable
- type MissingUnion
- type TypeWithDescription
- type UnionWithDescription
Constants ¶
This section is empty.
Variables ¶
View Source
var AllEnumWithDescription = []EnumWithDescription{ EnumWithDescriptionCat, EnumWithDescriptionDog, }
View Source
var AllMissingEnum = []MissingEnum{ MissingEnumHello, MissingEnumGoodbye, }
Functions ¶
This section is empty.
Types ¶
type EnumWithDescription ¶ added in v0.9.2
type EnumWithDescription string
EnumWithDescription is an enum with a description
const ( EnumWithDescriptionCat EnumWithDescription = "CAT" EnumWithDescriptionDog EnumWithDescription = "DOG" )
func (EnumWithDescription) IsValid ¶ added in v0.9.2
func (e EnumWithDescription) IsValid() bool
func (EnumWithDescription) MarshalGQL ¶ added in v0.9.2
func (e EnumWithDescription) MarshalGQL(w io.Writer)
func (EnumWithDescription) String ¶ added in v0.9.2
func (e EnumWithDescription) String() string
func (*EnumWithDescription) UnmarshalGQL ¶ added in v0.9.2
func (e *EnumWithDescription) UnmarshalGQL(v interface{}) error
type ExistingEnum ¶
type ExistingEnum string
type ExistingInput ¶
type ExistingInput struct { Name string Enum ExistingEnum Int ExistingInterface }
type ExistingInterface ¶
type ExistingInterface interface {
IsExistingInterface()
}
type ExistingModel ¶
type ExistingModel struct { Name string Enum ExistingEnum Int ExistingInterface }
type ExistingType ¶
type ExistingType struct { Name *string `json:"name"` Enum *ExistingEnum `json:"enum"` Int ExistingInterface `json:"int"` Existing *MissingTypeNullable `json:"existing"` }
type ExistingUnion ¶
type ExistingUnion interface {
IsExistingUnion()
}
type FieldMutationHook ¶ added in v0.15.0
type FieldMutationHook struct { Name *string `json:"name" anotherTag:"tag" database:"FieldMutationHookname"` Enum *ExistingEnum `json:"enum" yetAnotherTag:"12" database:"FieldMutationHookenum"` NoVal *string `json:"noVal" yaml:"noVal" repeated:"true" database:"FieldMutationHooknoVal"` Repeated *string `json:"repeated" someTag:"value" repeated:"true" database:"FieldMutationHookrepeated"` }
type FooBarr ¶ added in v0.11.0
type FooBarr struct {
Name string `json:"name" database:"_Foo_Barrname"`
}
func (FooBarr) IsFooBarer ¶ added in v0.11.0
func (FooBarr) IsFooBarer()
type InterfaceWithDescription ¶ added in v0.9.2
type InterfaceWithDescription interface {
IsInterfaceWithDescription()
}
InterfaceWithDescription is an interface with a description
type MissingEnum ¶
type MissingEnum string
const ( MissingEnumHello MissingEnum = "Hello" MissingEnumGoodbye MissingEnum = "Goodbye" )
func (MissingEnum) IsValid ¶
func (e MissingEnum) IsValid() bool
func (MissingEnum) MarshalGQL ¶
func (e MissingEnum) MarshalGQL(w io.Writer)
func (MissingEnum) String ¶
func (e MissingEnum) String() string
func (*MissingEnum) UnmarshalGQL ¶
func (e *MissingEnum) UnmarshalGQL(v interface{}) error
type MissingInput ¶
type MissingInput struct { Name *string `json:"name" database:"MissingInputname"` Enum *MissingEnum `json:"enum" database:"MissingInputenum"` }
type MissingInterface ¶
type MissingInterface interface {
IsMissingInterface()
}
type MissingTypeNotNull ¶ added in v0.9.0
type MissingTypeNotNull struct { Name string `json:"name" database:"MissingTypeNotNullname"` Enum MissingEnum `json:"enum" database:"MissingTypeNotNullenum"` Int MissingInterface `json:"int" database:"MissingTypeNotNullint"` Existing *ExistingType `json:"existing" database:"MissingTypeNotNullexisting"` Missing2 *MissingTypeNullable `json:"missing2" database:"MissingTypeNotNullmissing2"` }
func (MissingTypeNotNull) IsExistingInterface ¶ added in v0.9.0
func (MissingTypeNotNull) IsExistingInterface()
func (MissingTypeNotNull) IsExistingUnion ¶ added in v0.9.0
func (MissingTypeNotNull) IsExistingUnion()
func (MissingTypeNotNull) IsMissingInterface ¶ added in v0.9.0
func (MissingTypeNotNull) IsMissingInterface()
func (MissingTypeNotNull) IsMissingUnion ¶ added in v0.9.0
func (MissingTypeNotNull) IsMissingUnion()
type MissingTypeNullable ¶ added in v0.9.0
type MissingTypeNullable struct { Name *string `json:"name" database:"MissingTypeNullablename"` Enum *MissingEnum `json:"enum" database:"MissingTypeNullableenum"` Int MissingInterface `json:"int" database:"MissingTypeNullableint"` Existing *ExistingType `json:"existing" database:"MissingTypeNullableexisting"` Missing2 *MissingTypeNotNull `json:"missing2" database:"MissingTypeNullablemissing2"` }
func (MissingTypeNullable) IsExistingInterface ¶ added in v0.9.0
func (MissingTypeNullable) IsExistingInterface()
func (MissingTypeNullable) IsExistingUnion ¶ added in v0.9.0
func (MissingTypeNullable) IsExistingUnion()
func (MissingTypeNullable) IsMissingInterface ¶ added in v0.9.0
func (MissingTypeNullable) IsMissingInterface()
func (MissingTypeNullable) IsMissingUnion ¶ added in v0.9.0
func (MissingTypeNullable) IsMissingUnion()
type MissingUnion ¶
type MissingUnion interface {
IsMissingUnion()
}
type TypeWithDescription ¶ added in v0.9.2
type TypeWithDescription struct {
Name *string `json:"name" database:"TypeWithDescriptionname"`
}
TypeWithDescription is a type with a description
func (TypeWithDescription) IsUnionWithDescription ¶ added in v0.9.2
func (TypeWithDescription) IsUnionWithDescription()
type UnionWithDescription ¶ added in v0.9.2
type UnionWithDescription interface {
IsUnionWithDescription()
}
UnionWithDescription is an union with a description
Click to show internal directories.
Click to hide internal directories.