Documentation ¶
Index ¶
- Variables
- type A
- type ArrayOfA
- type B
- type C
- type CDImplemented
- type CyclicalA
- type CyclicalB
- type D
- type EnumWithDescription
- type ExistingEnum
- type ExistingInput
- type ExistingInterface
- type ExistingModel
- type ExistingType
- type ExistingUnion
- type FieldMutationHook
- type FooBarer
- type FooBarr
- type ImplArrayOfA
- type InterfaceWithDescription
- type MissingEnum
- type MissingInput
- type MissingInterface
- type MissingTypeNotNull
- type MissingTypeNullable
- type MissingUnion
- type NotCyclicalA
- type NotCyclicalB
- type Recursive
- type RenameFieldTest
- type TypeWithDescription
- type UnionWithDescription
- type X
- type Xer
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 CDImplemented ¶
type CDImplemented struct { A string `json:"a" database:"CDImplementeda"` B int `json:"b" database:"CDImplementedb"` C bool `json:"c" database:"CDImplementedc"` D *string `json:"d,omitempty" database:"CDImplementedd"` }
func (CDImplemented) IsA ¶
func (CDImplemented) IsA()
func (CDImplemented) IsB ¶
func (CDImplemented) IsB()
func (CDImplemented) IsC ¶
func (CDImplemented) IsC()
func (CDImplemented) IsD ¶
func (CDImplemented) IsD()
type CyclicalA ¶
type CyclicalA struct { FieldOne *CyclicalB `json:"field_one,omitempty" database:"CyclicalAfield_one"` FieldTwo *CyclicalB `json:"field_two,omitempty" database:"CyclicalAfield_two"` FieldThree *CyclicalB `json:"field_three,omitempty" database:"CyclicalAfield_three"` FieldFour string `json:"field_four" database:"CyclicalAfield_four"` }
type CyclicalB ¶
type CyclicalB struct { FieldOne *CyclicalA `json:"field_one,omitempty" database:"CyclicalBfield_one"` FieldTwo *CyclicalA `json:"field_two,omitempty" database:"CyclicalBfield_two"` FieldThree *CyclicalA `json:"field_three,omitempty" database:"CyclicalBfield_three"` FieldFour *CyclicalA `json:"field_four,omitempty" database:"CyclicalBfield_four"` FieldFive string `json:"field_five" database:"CyclicalBfield_five"` }
type EnumWithDescription ¶
type EnumWithDescription string
EnumWithDescription is an enum with a description
const ( EnumWithDescriptionCat EnumWithDescription = "CAT" EnumWithDescriptionDog EnumWithDescription = "DOG" )
func (EnumWithDescription) IsValid ¶
func (e EnumWithDescription) IsValid() bool
func (EnumWithDescription) MarshalGQL ¶
func (e EnumWithDescription) MarshalGQL(w io.Writer)
func (EnumWithDescription) String ¶
func (e EnumWithDescription) String() string
func (*EnumWithDescription) UnmarshalGQL ¶
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 ¶
type FieldMutationHook struct { Name *string `json:"name,omitempty" anotherTag:"tag" database:"FieldMutationHookname"` Enum *ExistingEnum `json:"enum,omitempty" yetAnotherTag:"12" database:"FieldMutationHookenum"` NoVal *string `json:"noVal,omitempty" yaml:"noVal" repeated:"true" database:"FieldMutationHooknoVal"` Repeated *string `json:"repeated,omitempty" someTag:"value" repeated:"true" database:"FieldMutationHookrepeated"` }
type FooBarr ¶
type FooBarr struct {
Name string `json:"name" database:"_Foo_Barrname"`
}
func (FooBarr) IsFooBarer ¶
func (FooBarr) IsFooBarer()
type ImplArrayOfA ¶ added in v0.17.15
type ImplArrayOfA struct { TrickyField []*CDImplemented `json:"trickyField" database:"ImplArrayOfAtrickyField"` TrickyFieldPointer []*CDImplemented `json:"trickyFieldPointer,omitempty" database:"ImplArrayOfAtrickyFieldPointer"` }
func (ImplArrayOfA) IsArrayOfA ¶ added in v0.17.15
func (ImplArrayOfA) IsArrayOfA()
type InterfaceWithDescription ¶
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,omitempty" database:"MissingInputname"` Enum *MissingEnum `json:"enum,omitempty" database:"MissingInputenum"` }
type MissingInterface ¶
type MissingInterface interface {
IsMissingInterface()
}
type MissingTypeNotNull ¶
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 ¶
func (MissingTypeNotNull) IsExistingInterface()
func (MissingTypeNotNull) IsExistingUnion ¶
func (MissingTypeNotNull) IsExistingUnion()
func (MissingTypeNotNull) IsMissingInterface ¶
func (MissingTypeNotNull) IsMissingInterface()
func (MissingTypeNotNull) IsMissingUnion ¶
func (MissingTypeNotNull) IsMissingUnion()
type MissingTypeNullable ¶
type MissingTypeNullable struct { Name *string `json:"name,omitempty" database:"MissingTypeNullablename"` Enum *MissingEnum `json:"enum,omitempty" database:"MissingTypeNullableenum"` Int MissingInterface `json:"int,omitempty" database:"MissingTypeNullableint"` Existing *ExistingType `json:"existing,omitempty" database:"MissingTypeNullableexisting"` Missing2 *MissingTypeNotNull `json:"missing2,omitempty" database:"MissingTypeNullablemissing2"` }
func (MissingTypeNullable) IsExistingInterface ¶
func (MissingTypeNullable) IsExistingInterface()
func (MissingTypeNullable) IsExistingUnion ¶
func (MissingTypeNullable) IsExistingUnion()
func (MissingTypeNullable) IsMissingInterface ¶
func (MissingTypeNullable) IsMissingInterface()
func (MissingTypeNullable) IsMissingUnion ¶
func (MissingTypeNullable) IsMissingUnion()
type MissingUnion ¶
type MissingUnion interface {
IsMissingUnion()
}
type NotCyclicalA ¶
type NotCyclicalB ¶
type NotCyclicalB struct { FieldOne string `json:"FieldOne" database:"NotCyclicalBFieldOne"` FieldTwo NotCyclicalA `json:"FieldTwo" database:"NotCyclicalBFieldTwo"` }
type RenameFieldTest ¶
type TypeWithDescription ¶
type TypeWithDescription struct {
Name *string `json:"name,omitempty" database:"TypeWithDescriptionname"`
}
TypeWithDescription is a type with a description
func (TypeWithDescription) IsUnionWithDescription ¶
func (TypeWithDescription) IsUnionWithDescription()
type UnionWithDescription ¶
type UnionWithDescription interface {
IsUnionWithDescription()
}
UnionWithDescription is an union with a description
Click to show internal directories.
Click to hide internal directories.