package out
import "github.com/99designs/gqlgen/plugin/modelgen/out"
Index ¶
- Variables
- type A
- type ArrayOfA
- type B
- type C
- type CDImplemented
- func (this CDImplemented) GetA() string
- func (this CDImplemented) GetB() int
- func (this CDImplemented) GetC() bool
- func (this CDImplemented) GetD() *string
- func (CDImplemented) IsA()
- func (CDImplemented) IsB()
- func (CDImplemented) IsC()
- func (CDImplemented) IsD()
- type CyclicalA
- type CyclicalB
- type D
- type EnumWithDescription
- func (e EnumWithDescription) IsValid() bool
- func (e EnumWithDescription) MarshalGQL(w io.Writer)
- func (e EnumWithDescription) String() string
- func (e *EnumWithDescription) UnmarshalGQL(v any) error
- type ExistingEnum
- type ExistingInput
- type ExistingInterface
- type ExistingModel
- type ExistingType
- type ExistingUnion
- type ExtraFieldsTest
- type FieldMutationHook
- type FooBarer
- type FooBarr
- type ImplArrayOfA
- func (this ImplArrayOfA) GetTrickyField() []A
- func (this ImplArrayOfA) GetTrickyFieldPointer() []A
- func (ImplArrayOfA) IsArrayOfA()
- type InterfaceWithDescription
- type MissingEnum
- func (e MissingEnum) IsValid() bool
- func (e MissingEnum) MarshalGQL(w io.Writer)
- func (e MissingEnum) String() string
- func (e *MissingEnum) UnmarshalGQL(v any) error
- type MissingInput
- type MissingInterface
- type MissingTypeNotNull
- func (this MissingTypeNotNull) GetName() *string
- func (MissingTypeNotNull) IsExistingInterface()
- func (MissingTypeNotNull) IsExistingUnion()
- func (MissingTypeNotNull) IsMissingInterface()
- func (MissingTypeNotNull) IsMissingUnion()
- type MissingTypeNullable
- func (this MissingTypeNullable) GetName() *string
- func (MissingTypeNullable) IsExistingInterface()
- func (MissingTypeNullable) IsExistingUnion()
- func (MissingTypeNullable) IsMissingInterface()
- func (MissingTypeNullable) IsMissingUnion()
- type MissingUnion
- type Mutation
- type NotCyclicalA
- type NotCyclicalB
- type OmitEmptyJSONTagTest
- type OmitZeroJSONTagTest
- type Query
- type Recursive
- type RenameFieldTest
- type SomeContent
- func (e SomeContent) IsValid() bool
- func (e SomeContent) MarshalGQL(w io.Writer)
- func (e SomeContent) MarshalJSON() ([]byte, error)
- func (e SomeContent) String() string
- func (e *SomeContent) UnmarshalGQL(v any) error
- func (e *SomeContent) UnmarshalJSON(b []byte) error
- type Subscription
- type TypeWithDescription
- type UnionWithDescription
- type X
- type Xer
Variables ¶
var AllEnumWithDescription = []EnumWithDescription{ EnumWithDescriptionCat, EnumWithDescriptionDog, }
var AllMissingEnum = []MissingEnum{ MissingEnumHello, MissingEnumGoodbye, }
var AllSomeContent = []SomeContent{ SomeContentThis, SomeContentIs, SomeContentA, SomeContentTest, }
Types ¶
type A ¶
type A interface { IsA() GetA() string }
type ArrayOfA ¶
type B ¶
type B interface { IsB() GetB() int }
type C ¶
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) GetA ¶
func (this CDImplemented) GetA() string
func (CDImplemented) GetB ¶
func (this CDImplemented) GetB() int
func (CDImplemented) GetC ¶
func (this CDImplemented) GetC() bool
func (CDImplemented) GetD ¶
func (this CDImplemented) GetD() *string
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 D ¶
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 any) 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 ExtraFieldsTest ¶
type ExtraFieldsTest struct { SchemaField string `json:"SchemaField" database:"ExtraFieldsTestSchemaField"` FieldInt int64 `json:"field_int_tag" database:"ExtraFieldsTestFieldInt"` FieldIntSlice []int64 `json:"-" database:"ExtraFieldsTestFieldIntSlice"` // Internal field FieldInternalType extrafields.Type `json:"-" database:"ExtraFieldsTestFieldInternalType"` FieldStringPtr *string `json:"-" database:"ExtraFieldsTestFieldStringPtr"` }
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 FooBarer ¶
type FooBarer interface { IsFooBarer() GetName() string }
type FooBarr ¶
type FooBarr struct { Name string `json:"name" database:"_Foo_Barrname"` }
func (FooBarr) GetName ¶
func (FooBarr) IsFooBarer ¶
func (FooBarr) IsFooBarer()
type ImplArrayOfA ¶
type ImplArrayOfA struct { TrickyField []*CDImplemented `json:"trickyField" database:"ImplArrayOfAtrickyField"` TrickyFieldPointer []*CDImplemented `json:"trickyFieldPointer,omitempty" database:"ImplArrayOfAtrickyFieldPointer"` }
func (ImplArrayOfA) GetTrickyField ¶
func (this ImplArrayOfA) GetTrickyField() []A
func (ImplArrayOfA) GetTrickyFieldPointer ¶
func (this ImplArrayOfA) GetTrickyFieldPointer() []A
func (ImplArrayOfA) IsArrayOfA ¶
func (ImplArrayOfA) IsArrayOfA()
type InterfaceWithDescription ¶
type InterfaceWithDescription interface { IsInterfaceWithDescription() GetName() *string }
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 any) error
type MissingInput ¶
type MissingInput struct { Name *string `json:"name,omitempty" database:"MissingInputname"` Enum *MissingEnum `json:"enum,omitempty" database:"MissingInputenum"` NonNullString string `json:"nonNullString" database:"MissingInputnonNullString"` NullString graphql.Omittable[*string] `json:"nullString,omitempty" database:"MissingInputnullString"` NullEnum graphql.Omittable[*MissingEnum] `json:"nullEnum,omitempty" database:"MissingInputnullEnum"` NullObject graphql.Omittable[*ExistingInput] `json:"nullObject,omitempty" database:"MissingInputnullObject"` }
type MissingInterface ¶
type MissingInterface interface { IsMissingInterface() GetName() *string }
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) GetName ¶
func (this MissingTypeNotNull) GetName() *string
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) GetName ¶
func (this MissingTypeNullable) GetName() *string
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 Mutation ¶
type Mutation struct { }
type NotCyclicalA ¶
type NotCyclicalA struct { FieldOne string `json:"FieldOne" database:"NotCyclicalAFieldOne"` FieldTwo int `json:"FieldTwo" database:"NotCyclicalAFieldTwo"` }
type NotCyclicalB ¶
type NotCyclicalB struct { FieldOne string `json:"FieldOne" database:"NotCyclicalBFieldOne"` FieldTwo *NotCyclicalA `json:"FieldTwo" database:"NotCyclicalBFieldTwo"` }
type OmitEmptyJSONTagTest ¶
type OmitEmptyJSONTagTest struct { ValueNonNil string `json:"ValueNonNil" database:"OmitEmptyJsonTagTestValueNonNil"` Value *string `json:"Value,omitempty" database:"OmitEmptyJsonTagTestValue"` }
type OmitZeroJSONTagTest ¶
type OmitZeroJSONTagTest struct { ValueNonNil string `json:"ValueNonNil" database:"OmitZeroJSONTagTestValueNonNil"` Value *string `json:"Value,omitempty" database:"OmitZeroJSONTagTestValue"` }
type Query ¶
type Query struct { }
type Recursive ¶
type Recursive struct { FieldOne *Recursive `json:"FieldOne" database:"RecursiveFieldOne"` FieldTwo *Recursive `json:"FieldTwo" database:"RecursiveFieldTwo"` FieldThree *Recursive `json:"FieldThree" database:"RecursiveFieldThree"` FieldFour string `json:"FieldFour" database:"RecursiveFieldFour"` }
type RenameFieldTest ¶
type RenameFieldTest struct { GOODnaME string `json:"badName" database:"RenameFieldTestbadName"` OtherField string `json:"otherField" database:"RenameFieldTestotherField"` }
type SomeContent ¶
type SomeContent string
const ( SomeContentThis SomeContent = "This" SomeContentIs SomeContent = "Is" SomeContentA SomeContent = "A" SomeContentTest SomeContent = "Test" )
func (SomeContent) IsValid ¶
func (e SomeContent) IsValid() bool
func (SomeContent) MarshalGQL ¶
func (e SomeContent) MarshalGQL(w io.Writer)
func (SomeContent) MarshalJSON ¶
func (e SomeContent) MarshalJSON() ([]byte, error)
func (SomeContent) String ¶
func (e SomeContent) String() string
func (*SomeContent) UnmarshalGQL ¶
func (e *SomeContent) UnmarshalGQL(v any) error
func (*SomeContent) UnmarshalJSON ¶
func (e *SomeContent) UnmarshalJSON(b []byte) error
type Subscription ¶
type Subscription struct { }
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
type X ¶
type X interface { IsX() GetId() string }
type Xer ¶
type Xer struct { Id string `json:"Id" database:"XerId"` Name string `json:"Name" database:"XerName"` }
func (Xer) GetId ¶
func (Xer) IsX ¶
func (Xer) IsX()
Source Files ¶
existing.go generated.go generated_omit_root_models.go
- Version
- v0.17.73 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 6 days ago –
Tools for package owners.