Documentation ¶
Index ¶
- Variables
- func MarshalBytes(b []byte) graphql.Marshaler
- func MarshalStringFromContextFunction(v string) graphql.ContextMarshaler
- func MarshalThirdParty(tp ThirdParty) graphql.Marshaler
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func UnmarshalBytes(v any) ([]byte, error)
- func UnmarshalStringFromContextFunction(ctx context.Context, v any) (string, error)
- type A
- type AIt
- type AbIt
- type Animal
- type AsdfIt
- type Autobind
- type B
- type BackedByInterface
- type BackedByInterfaceImpl
- type BackedByInterfaceResolver
- type Bytes
- type Cat
- type CheckIssue896
- type Circle
- type ComplexityRoot
- type ConcreteNodeA
- type ConcreteNodeInterface
- type ConcreteNodeInterfaceImplementor
- type Config
- type ContentChild
- type ContentPost
- type ContentUser
- type Coordinates
- type CustomScalar
- type DefaultInput
- type DefaultParametersMirror
- type DeferModel
- type DeferModelResolver
- type DirectiveRoot
- type Dog
- type Email
- type EmbeddedCase1
- type EmbeddedCase2
- type EmbeddedCase3
- type EmbeddedDefaultScalar
- type EmbeddedPointer
- type EmbeddedPointerModel
- type Empty
- type EnumTest
- type Error
- type Errors
- type ErrorsResolver
- type ExportedEmbeddedPointerAfterInterface
- type FallbackToStringEncoding
- type FieldsOrderInput
- type FieldsOrderInputResolver
- type FieldsOrderPayload
- type ForcedResolver
- type ForcedResolverResolver
- type Horse
- type IIt
- type InnerDirectives
- type InnerInput
- type InnerObject
- type InputDirectives
- type InputWithEnumValue
- type LoopA
- type LoopB
- type Mammalian
- type Map
- type MapNested
- type MarshalPanic
- type ModelMethods
- type ModelMethodsResolver
- type Mutation
- type MutationResolver
- type NestedInput
- type NestedMapInput
- type Node
- type ObjectDirectives
- type ObjectDirectivesWithCustomGoModel
- type OmittableInput
- type OuterInput
- type OuterObject
- type OverlappingFields
- type OverlappingFieldsResolver
- type Panics
- type PanicsResolver
- type Pet
- type PetResolver
- type Primitive
- type PrimitiveResolver
- type PrimitiveString
- type PrimitiveStringResolver
- type PtrToAnyContainer
- type PtrToPtrInner
- type PtrToPtrOuter
- type PtrToSliceContainer
- type Query
- type QueryResolver
- type Rectangle
- type RecursiveInputSlice
- type Resolver
- func (r *Resolver) BackedByInterface() BackedByInterfaceResolver
- func (r *Resolver) DeferModel() DeferModelResolver
- func (r *Resolver) Errors() ErrorsResolver
- func (r *Resolver) ForcedResolver() ForcedResolverResolver
- func (r *Resolver) ModelMethods() ModelMethodsResolver
- func (r *Resolver) Mutation() MutationResolver
- func (r *Resolver) OverlappingFields() OverlappingFieldsResolver
- func (r *Resolver) Panics() PanicsResolver
- func (r *Resolver) Pet() PetResolver
- func (r *Resolver) Primitive() PrimitiveResolver
- func (r *Resolver) PrimitiveString() PrimitiveStringResolver
- func (r *Resolver) Query() QueryResolver
- func (r *Resolver) Subscription() SubscriptionResolver
- func (r *Resolver) User() UserResolver
- func (r *Resolver) WrappedMap() WrappedMapResolver
- func (r *Resolver) WrappedSlice() WrappedSliceResolver
- type ResolverRoot
- type Shape
- type ShapeUnion
- type Size
- type Slices
- type SpecialInput
- type Status
- type StringFromContextInterface
- type Stub
- func (r *Stub) BackedByInterface() BackedByInterfaceResolver
- func (r *Stub) DeferModel() DeferModelResolver
- func (r *Stub) Errors() ErrorsResolver
- func (r *Stub) FieldsOrderInput() FieldsOrderInputResolver
- func (r *Stub) ForcedResolver() ForcedResolverResolver
- func (r *Stub) ModelMethods() ModelMethodsResolver
- func (r *Stub) Mutation() MutationResolver
- func (r *Stub) OverlappingFields() OverlappingFieldsResolver
- func (r *Stub) Panics() PanicsResolver
- func (r *Stub) Pet() PetResolver
- func (r *Stub) Primitive() PrimitiveResolver
- func (r *Stub) PrimitiveString() PrimitiveStringResolver
- func (r *Stub) Query() QueryResolver
- func (r *Stub) Subscription() SubscriptionResolver
- func (r *Stub) User() UserResolver
- func (r *Stub) WrappedMap() WrappedMapResolver
- func (r *Stub) WrappedSlice() WrappedSliceResolver
- type Subscription
- type SubscriptionResolver
- type TestUnion
- type ThirdParty
- type UpdatePtrToPtrInner
- type UpdatePtrToPtrOuter
- type User
- type UserResolver
- type VOkCaseNil
- type VOkCaseValue
- type ValidInput
- type ValidType
- type VariadicModel
- type VariadicModelOption
- type WrappedMap
- type WrappedMapResolver
- type WrappedScalar
- type WrappedSlice
- type WrappedSliceResolver
- type WrappedStruct
- type XXIt
- type XxIt
Constants ¶
This section is empty.
Variables ¶
var AllEnumTest = []EnumTest{ EnumTestOk, EnumTestNg, }
var AllStatus = []Status{ StatusOk, StatusError, }
Functions ¶
func MarshalBytes ¶
func MarshalStringFromContextFunction ¶
func MarshalStringFromContextFunction(v string) graphql.ContextMarshaler
func MarshalThirdParty ¶
func MarshalThirdParty(tp ThirdParty) graphql.Marshaler
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func UnmarshalBytes ¶
Types ¶
type BackedByInterface ¶
type BackedByInterfaceImpl ¶
func (*BackedByInterfaceImpl) ThisShouldBind ¶
func (b *BackedByInterfaceImpl) ThisShouldBind() string
func (*BackedByInterfaceImpl) ThisShouldBindWithError ¶
func (b *BackedByInterfaceImpl) ThisShouldBindWithError() (string, error)
type BackedByInterfaceResolver ¶
type BackedByInterfaceResolver interface {
ID(ctx context.Context, obj BackedByInterface) (string, error)
}
type Cat ¶
type Cat struct { Species string `json:"species"` Size *Size `json:"size"` CatBreed string `json:"catBreed"` }
func (Cat) GetSpecies ¶ added in v0.17.14
type CheckIssue896 ¶
type CheckIssue896 struct {
ID *int `json:"id,omitempty"`
}
type Circle ¶
type Circle struct { Radius float64 Coordinates }
type ComplexityRoot ¶
type ComplexityRoot struct { A struct { ID func(childComplexity int) int } AIt struct { ID func(childComplexity int) int } AbIt struct { ID func(childComplexity int) int } Autobind struct { IdInt func(childComplexity int) int IdStr func(childComplexity int) int Int func(childComplexity int) int Int32 func(childComplexity int) int Int64 func(childComplexity int) int } B struct { ID func(childComplexity int) int } BackedByInterface struct { ID func(childComplexity int) int ThisShouldBind func(childComplexity int) int ThisShouldBindWithError func(childComplexity int) int } Cat struct { CatBreed func(childComplexity int) int Size func(childComplexity int) int Species func(childComplexity int) int } CheckIssue896 struct { ID func(childComplexity int) int } Circle struct { Area func(childComplexity int) int Coordinates func(childComplexity int) int Radius func(childComplexity int) int } ConcreteNodeA struct { Child func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } ConcreteNodeInterface struct { Child func(childComplexity int) int ID func(childComplexity int) int } Content_Post struct { Foo func(childComplexity int) int } Content_User struct { Foo func(childComplexity int) int } Coordinates struct { X func(childComplexity int) int Y func(childComplexity int) int } DefaultParametersMirror struct { FalsyBoolean func(childComplexity int) int TruthyBoolean func(childComplexity int) int } DeferModel struct { ID func(childComplexity int) int Name func(childComplexity int) int Values func(childComplexity int) int } Dog struct { DogBreed func(childComplexity int) int Size func(childComplexity int) int Species func(childComplexity int) int } EmbeddedCase1 struct { ExportedEmbeddedPointerExportedMethod func(childComplexity int) int } EmbeddedCase2 struct { UnexportedEmbeddedPointerExportedMethod func(childComplexity int) int } EmbeddedCase3 struct { UnexportedEmbeddedInterfaceExportedMethod func(childComplexity int) int } EmbeddedDefaultScalar struct { Value func(childComplexity int) int } EmbeddedPointer struct { ID func(childComplexity int) int Title func(childComplexity int) int } Error struct { ErrorOnNonRequiredField func(childComplexity int) int ErrorOnRequiredField func(childComplexity int) int ID func(childComplexity int) int NilOnRequiredField func(childComplexity int) int } Errors struct { A func(childComplexity int) int B func(childComplexity int) int C func(childComplexity int) int D func(childComplexity int) int E func(childComplexity int) int } FieldsOrderPayload struct { FirstFieldValue func(childComplexity int) int } ForcedResolver struct { Field func(childComplexity int) int } Horse struct { HorseBreed func(childComplexity int) int Size func(childComplexity int) int Species func(childComplexity int) int } InnerObject struct { ID func(childComplexity int) int } InvalidIdentifier struct { ID func(childComplexity int) int } It struct { ID func(childComplexity int) int } LoopA struct { B func(childComplexity int) int } LoopB struct { A func(childComplexity int) int } Map struct { ID func(childComplexity int) int } MapNested struct { Value func(childComplexity int) int } MapStringInterfaceType struct { A func(childComplexity int) int B func(childComplexity int) int C func(childComplexity int) int Nested func(childComplexity int) int } ModelMethods struct { NoContext func(childComplexity int) int ResolverField func(childComplexity int) int WithContext func(childComplexity int) int } Mutation struct { DefaultInput func(childComplexity int, input DefaultInput) int OverrideValueViaInput func(childComplexity int, input FieldsOrderInput) int UpdatePtrToPtr func(childComplexity int, input UpdatePtrToPtrOuter) int UpdateSomething func(childComplexity int, input SpecialInput) int } ObjectDirectives struct { NullableText func(childComplexity int) int Order func(childComplexity int) int Text func(childComplexity int) int } ObjectDirectivesWithCustomGoModel struct { NullableText func(childComplexity int) int } OuterObject struct { Inner func(childComplexity int) int } OverlappingFields struct { Foo func(childComplexity int) int NewFoo func(childComplexity int) int OldFoo func(childComplexity int) int } Panics struct { ArgUnmarshal func(childComplexity int, u []MarshalPanic) int FieldFuncMarshal func(childComplexity int, u []MarshalPanic) int FieldScalarMarshal func(childComplexity int) int } Pet struct { Friends func(childComplexity int, limit *int) int ID func(childComplexity int) int } Primitive struct { Squared func(childComplexity int) int Value func(childComplexity int) int } PrimitiveString struct { Doubled func(childComplexity int) int Len func(childComplexity int) int Value func(childComplexity int) int } PtrToAnyContainer struct { Binding func(childComplexity int) int PtrToAny func(childComplexity int) int } PtrToPtrInner struct { Key func(childComplexity int) int Value func(childComplexity int) int } PtrToPtrOuter struct { Inner func(childComplexity int) int Name func(childComplexity int) int StupidInner func(childComplexity int) int } PtrToSliceContainer struct { PtrToSlice func(childComplexity int) int } Query struct { Animal func(childComplexity int) int Autobind func(childComplexity int) int Collision func(childComplexity int) int DefaultParameters func(childComplexity int, falsyBoolean *bool, truthyBoolean *bool) int DefaultScalar func(childComplexity int, arg string) int DeferMultiple func(childComplexity int) int DeferSingle func(childComplexity int) int DeprecatedField func(childComplexity int) int DirectiveArg func(childComplexity int, arg string) int DirectiveDouble func(childComplexity int) int DirectiveField func(childComplexity int) int DirectiveFieldDef func(childComplexity int, ret string) int DirectiveInput func(childComplexity int, arg InputDirectives) int DirectiveInputNullable func(childComplexity int, arg *InputDirectives) int DirectiveInputType func(childComplexity int, arg InnerInput) int DirectiveNullableArg func(childComplexity int, arg *int, arg2 *int, arg3 *string) int DirectiveObject func(childComplexity int) int DirectiveObjectWithCustomGoModel func(childComplexity int) int DirectiveSingleNullableArg func(childComplexity int, arg1 *string) int DirectiveUnimplemented func(childComplexity int) int Dog func(childComplexity int) int EmbeddedCase1 func(childComplexity int) int EmbeddedCase2 func(childComplexity int) int EmbeddedCase3 func(childComplexity int) int EnumInInput func(childComplexity int, input *InputWithEnumValue) int ErrorBubble func(childComplexity int) int ErrorBubbleList func(childComplexity int) int ErrorList func(childComplexity int) int Errors func(childComplexity int) int Fallback func(childComplexity int, arg FallbackToStringEncoding) int Infinity func(childComplexity int) int InputNullableSlice func(childComplexity int, arg []string) int InputOmittable func(childComplexity int, arg OmittableInput) int InputSlice func(childComplexity int, arg []string) int Invalid func(childComplexity int) int InvalidIdentifier func(childComplexity int) int Issue896a func(childComplexity int) int MapInput func(childComplexity int, input map[string]interface{}) int MapNestedStringInterface func(childComplexity int, in *NestedMapInput) int MapStringInterface func(childComplexity int, in map[string]interface{}) int ModelMethods func(childComplexity int) int NestedInputs func(childComplexity int, input [][]*OuterInput) int NestedOutputs func(childComplexity int) int NoShape func(childComplexity int) int NoShapeTypedNil func(childComplexity int) int Node func(childComplexity int) int NotAnInterface func(childComplexity int) int NullableArg func(childComplexity int, arg *int) int OptionalUnion func(childComplexity int) int Overlapping func(childComplexity int) int Panics func(childComplexity int) int PrimitiveObject func(childComplexity int) int PrimitiveStringObject func(childComplexity int) int PtrToAnyContainer func(childComplexity int) int PtrToSliceContainer func(childComplexity int) int Recursive func(childComplexity int, input *RecursiveInputSlice) int ScalarSlice func(childComplexity int) int ShapeUnion func(childComplexity int) int Shapes func(childComplexity int) int Slices func(childComplexity int) int StringFromContextFunction func(childComplexity int) int StringFromContextInterface func(childComplexity int) int User func(childComplexity int, id int) int VOkCaseNil func(childComplexity int) int VOkCaseValue func(childComplexity int) int Valid func(childComplexity int) int ValidType func(childComplexity int) int VariadicModel func(childComplexity int) int WrappedMap func(childComplexity int) int WrappedScalar func(childComplexity int) int WrappedSlice func(childComplexity int) int WrappedStruct func(childComplexity int) int } Rectangle struct { Area func(childComplexity int) int Coordinates func(childComplexity int) int Length func(childComplexity int) int Width func(childComplexity int) int } Size struct { Height func(childComplexity int) int Weight func(childComplexity int) int } Slices struct { Test1 func(childComplexity int) int Test2 func(childComplexity int) int Test3 func(childComplexity int) int Test4 func(childComplexity int) int } Subscription struct { DirectiveArg func(childComplexity int, arg string) int DirectiveDouble func(childComplexity int) int DirectiveNullableArg func(childComplexity int, arg *int, arg2 *int, arg3 *string) int DirectiveUnimplemented func(childComplexity int) int ErrorRequired func(childComplexity int) int InitPayload func(childComplexity int) int Issue896b func(childComplexity int) int Updated func(childComplexity int) int } User struct { Created func(childComplexity int) int Friends func(childComplexity int) int ID func(childComplexity int) int Pets func(childComplexity int, limit *int) int Updated func(childComplexity int) int } VOkCaseNil struct { Value func(childComplexity int) int } VOkCaseValue struct { Value func(childComplexity int) int } ValidType struct { DifferentCase func(childComplexity int) int DifferentCaseOld func(childComplexity int) int ValidArgs func(childComplexity int, breakArg string, defaultArg string, funcArg string, interfaceArg string, selectArg string, caseArg string, deferArg string, goArg string, mapArg string, structArg string, chanArg string, elseArg string, gotoArg string, packageArg string, switchArg string, constArg string, fallthroughArg string, ifArg string, rangeArg string, typeArg string, continueArg string, forArg string, importArg string, returnArg string, varArg string, _ string) int ValidInputKeywords func(childComplexity int, input *ValidInput) int } VariadicModel struct { Value func(childComplexity int, rank int) int } WrappedMap struct { Get func(childComplexity int, key string) int } WrappedSlice struct { Get func(childComplexity int, idx int) int } WrappedStruct struct { Desc func(childComplexity int) int Name func(childComplexity int) int } XXIt struct { ID func(childComplexity int) int } XxIt struct { ID func(childComplexity int) int } AsdfIt struct { ID func(childComplexity int) int } IIt struct { ID func(childComplexity int) int } }
type ConcreteNodeA ¶
func (*ConcreteNodeA) Child ¶
func (n *ConcreteNodeA) Child() (Node, error)
type ConcreteNodeInterface ¶
Implements the Node interface with another interface
type ConcreteNodeInterfaceImplementor ¶
type ConcreteNodeInterfaceImplementor struct{}
func (ConcreteNodeInterfaceImplementor) Child ¶
func (c ConcreteNodeInterfaceImplementor) Child() (Node, error)
func (ConcreteNodeInterfaceImplementor) ID ¶
func (c ConcreteNodeInterfaceImplementor) ID() string
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ContentChild ¶
type ContentChild interface {
IsContentChild()
}
type ContentPost ¶
type ContentPost struct {
Foo *string `json:"foo,omitempty"`
}
func (ContentPost) IsContentChild ¶
func (ContentPost) IsContentChild()
type ContentUser ¶
type ContentUser struct {
Foo *string `json:"foo,omitempty"`
}
func (ContentUser) IsContentChild ¶
func (ContentUser) IsContentChild()
type Coordinates ¶
type CustomScalar ¶ added in v0.17.40
type CustomScalar struct {
// contains filtered or unexported fields
}
func (CustomScalar) MarshalGQL ¶ added in v0.17.40
func (s CustomScalar) MarshalGQL(w io.Writer)
func (*CustomScalar) UnmarshalGQL ¶ added in v0.17.40
func (s *CustomScalar) UnmarshalGQL(v any) (err error)
type DefaultInput ¶
type DefaultParametersMirror ¶
type DeferModel ¶ added in v0.17.32
type DeferModelResolver ¶ added in v0.17.32
type DeferModelResolver interface {
Values(ctx context.Context, obj *DeferModel) ([]string, error)
}
type DirectiveRoot ¶
type DirectiveRoot struct { Custom func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Defer func(ctx context.Context, obj any, next graphql.Resolver, ifArg *bool, label *string) (res any, err error) Directive1 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Directive2 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Directive3 func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Length func(ctx context.Context, obj any, next graphql.Resolver, min int, max *int, message *string) (res any, err error) Logged func(ctx context.Context, obj any, next graphql.Resolver, id string) (res any, err error) MakeNil func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) MakeTypedNil func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Noop func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Order1 func(ctx context.Context, obj any, next graphql.Resolver, location string) (res any, err error) Order2 func(ctx context.Context, obj any, next graphql.Resolver, location string) (res any, err error) Populate func(ctx context.Context, obj any, next graphql.Resolver, value string) (res any, err error) Range func(ctx context.Context, obj any, next graphql.Resolver, min *int, max *int) (res any, err error) ToNull func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) Unimplemented func(ctx context.Context, obj any, next graphql.Resolver) (res any, err error) }
type Dog ¶
type Dog struct { Species string `json:"species"` Size *Size `json:"size"` DogBreed string `json:"dogBreed"` }
func (Dog) GetSpecies ¶ added in v0.17.14
type EmbeddedCase1 ¶
type EmbeddedCase1 struct { Empty *ExportedEmbeddedPointerAfterInterface }
EmbeddedCase1 model
type EmbeddedCase2 ¶
type EmbeddedCase2 struct {
// contains filtered or unexported fields
}
EmbeddedCase2 model
func (EmbeddedCase2) UnexportedEmbeddedPointerExportedMethod ¶
func (EmbeddedCase2) UnexportedEmbeddedPointerExportedMethod() string
UnexportedEmbeddedPointerExportedMethod method
type EmbeddedCase3 ¶
type EmbeddedCase3 struct {
// contains filtered or unexported fields
}
EmbeddedCase3 model
type EmbeddedDefaultScalar ¶
type EmbeddedDefaultScalar struct {
Value *string `json:"value,omitempty"`
}
type EmbeddedPointer ¶
type EmbeddedPointer struct {
Title string
}
type EmbeddedPointerModel ¶
type EmbeddedPointerModel struct { *EmbeddedPointer ID string }
type Error ¶
type Error struct {
ID string
}
func (Error) ErrorOnNonRequiredField ¶
func (Error) ErrorOnRequiredField ¶
func (Error) NilOnRequiredField ¶
type ErrorsResolver ¶
type ExportedEmbeddedPointerAfterInterface ¶
type ExportedEmbeddedPointerAfterInterface struct{}
ExportedEmbeddedPointerAfterInterface model
func (*ExportedEmbeddedPointerAfterInterface) ExportedEmbeddedPointerExportedMethod ¶
func (*ExportedEmbeddedPointerAfterInterface) ExportedEmbeddedPointerExportedMethod() string
ExportedEmbeddedPointerExportedMethod method
type FallbackToStringEncoding ¶
type FallbackToStringEncoding string
const ( FallbackToStringEncodingA FallbackToStringEncoding = "A" FallbackToStringEncodingB FallbackToStringEncoding = "B" FallbackToStringEncodingC FallbackToStringEncoding = "C" )
type FieldsOrderInput ¶ added in v0.17.11
type FieldsOrderInput struct {
FirstField *string `json:"firstField"`
}
type FieldsOrderInputResolver ¶ added in v0.17.11
type FieldsOrderInputResolver interface {
OverrideFirstField(ctx context.Context, obj *FieldsOrderInput, data *string) error
}
type FieldsOrderPayload ¶ added in v0.17.11
type FieldsOrderPayload struct {
FirstFieldValue *string `json:"firstFieldValue,omitempty"`
}
type ForcedResolver ¶
type ForcedResolver struct {
Field Circle
}
type ForcedResolverResolver ¶
type ForcedResolverResolver interface {
Field(ctx context.Context, obj *ForcedResolver) (*Circle, error)
}
type Horse ¶ added in v0.17.42
type Horse struct { Species string `json:"species"` Size *Size `json:"size"` HorseBreed string `json:"horseBreed"` }
func (Horse) GetSpecies ¶ added in v0.17.42
func (Horse) IsMammalian ¶ added in v0.17.42
func (Horse) IsMammalian()
type InnerDirectives ¶
type InnerDirectives struct {
Message string `json:"message"`
}
type InnerInput ¶
type InnerInput struct {
ID int `json:"id"`
}
type InnerObject ¶
type InnerObject struct {
ID int `json:"id"`
}
type InputDirectives ¶
type InputDirectives struct { Text string `json:"text"` NullableText *string `json:"nullableText,omitempty"` Inner *InnerDirectives `json:"inner"` InnerNullable *InnerDirectives `json:"innerNullable,omitempty"` ThirdParty *ThirdParty `json:"thirdParty,omitempty"` }
type InputWithEnumValue ¶
type InputWithEnumValue struct {
Enum EnumTest `json:"enum"`
}
type Map ¶
type Map struct {
ID string `json:"id"`
}
Since gqlgen defines default implementation for a Map scalar, this tests that the builtin is _not_ added to the TypeMap
type MapNested ¶ added in v0.17.40
type MapNested struct {
Value CustomScalar
}
type MarshalPanic ¶
type MarshalPanic string
func (MarshalPanic) MarshalGQL ¶
func (m MarshalPanic) MarshalGQL(w io.Writer)
func (*MarshalPanic) UnmarshalGQL ¶
func (m *MarshalPanic) UnmarshalGQL(v any) error
type ModelMethods ¶
type ModelMethods struct{}
func (ModelMethods) NoContext ¶
func (m ModelMethods) NoContext() bool
func (ModelMethods) WithContext ¶
func (m ModelMethods) WithContext(_ context.Context) bool
type ModelMethodsResolver ¶
type ModelMethodsResolver interface {
ResolverField(ctx context.Context, obj *ModelMethods) (bool, error)
}
type MutationResolver ¶
type MutationResolver interface { DefaultInput(ctx context.Context, input DefaultInput) (*DefaultParametersMirror, error) OverrideValueViaInput(ctx context.Context, input FieldsOrderInput) (*FieldsOrderPayload, error) UpdateSomething(ctx context.Context, input SpecialInput) (string, error) UpdatePtrToPtr(ctx context.Context, input UpdatePtrToPtrOuter) (*PtrToPtrOuter, error) }
type NestedInput ¶
type NestedInput struct {
Field Email `json:"field"`
}
type NestedMapInput ¶
type NestedMapInput struct {
Map map[string]interface{} `json:"map,omitempty"`
}
type ObjectDirectives ¶
type ObjectDirectivesWithCustomGoModel ¶
type ObjectDirectivesWithCustomGoModel struct {
NullableText string // not *string, but schema is `String @toNull` type.
}
type OmittableInput ¶ added in v0.17.31
type OmittableInput struct { ID graphql.Omittable[*string] `json:"id,omitempty"` Bool graphql.Omittable[*bool] `json:"bool,omitempty"` Str graphql.Omittable[*string] `json:"str,omitempty"` Int graphql.Omittable[*int] `json:"int,omitempty"` Time graphql.Omittable[*time.Time] `json:"time,omitempty"` Enum graphql.Omittable[*Status] `json:"enum,omitempty"` Scalar graphql.Omittable[*ThirdParty] `json:"scalar,omitempty"` Object graphql.Omittable[*OuterInput] `json:"object,omitempty"` }
type OuterInput ¶
type OuterInput struct {
Inner *InnerInput `json:"inner"`
}
type OuterObject ¶
type OuterObject struct {
Inner *InnerObject `json:"inner"`
}
type OverlappingFields ¶
type OverlappingFieldsResolver ¶
type OverlappingFieldsResolver interface {
OldFoo(ctx context.Context, obj *OverlappingFields) (int, error)
}
type Panics ¶
type Panics struct{}
func (*Panics) FieldFuncMarshal ¶
func (p *Panics) FieldFuncMarshal(ctx context.Context, u []MarshalPanic) []MarshalPanic
type PanicsResolver ¶
type PetResolver ¶ added in v0.17.3
type PrimitiveResolver ¶
type PrimitiveString ¶
type PrimitiveString string
func (PrimitiveString) Doubled ¶
func (s PrimitiveString) Doubled() string
type PrimitiveStringResolver ¶
type PrimitiveStringResolver interface { Value(ctx context.Context, obj *PrimitiveString) (string, error) Len(ctx context.Context, obj *PrimitiveString) (int, error) }
type PtrToAnyContainer ¶ added in v0.17.32
type PtrToAnyContainer struct {
PtrToAny *any
}
func (*PtrToAnyContainer) Binding ¶ added in v0.17.32
func (c *PtrToAnyContainer) Binding() *any
type PtrToPtrInner ¶
type PtrToPtrOuter ¶
type PtrToPtrOuter struct { Name string Inner *PtrToPtrInner StupidInner *******PtrToPtrInner }
type PtrToSliceContainer ¶
type PtrToSliceContainer struct {
PtrToSlice *[]string
}
type QueryResolver ¶
type QueryResolver interface { InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) Collision(ctx context.Context) (*introspection1.It, error) MapInput(ctx context.Context, input map[string]interface{}) (*bool, error) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) NestedOutputs(ctx context.Context) ([][]*OuterObject, error) ModelMethods(ctx context.Context) (*ModelMethods, error) User(ctx context.Context, id int) (*User, error) NullableArg(ctx context.Context, arg *int) (*string, error) InputSlice(ctx context.Context, arg []string) (bool, error) InputNullableSlice(ctx context.Context, arg []string) (bool, error) InputOmittable(ctx context.Context, arg OmittableInput) (string, error) ShapeUnion(ctx context.Context) (ShapeUnion, error) Autobind(ctx context.Context) (*Autobind, error) DeprecatedField(ctx context.Context) (string, error) Overlapping(ctx context.Context) (*OverlappingFields, error) DefaultParameters(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) DeferSingle(ctx context.Context) (*DeferModel, error) DeferMultiple(ctx context.Context) ([]*DeferModel, error) DirectiveArg(ctx context.Context, arg string) (*string, error) DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) DirectiveSingleNullableArg(ctx context.Context, arg1 *string) (*string, error) DirectiveInputNullable(ctx context.Context, arg *InputDirectives) (*string, error) DirectiveInput(ctx context.Context, arg InputDirectives) (*string, error) DirectiveInputType(ctx context.Context, arg InnerInput) (*string, error) DirectiveObject(ctx context.Context) (*ObjectDirectives, error) DirectiveObjectWithCustomGoModel(ctx context.Context) (*ObjectDirectivesWithCustomGoModel, error) DirectiveFieldDef(ctx context.Context, ret string) (string, error) DirectiveField(ctx context.Context) (*string, error) DirectiveDouble(ctx context.Context) (*string, error) DirectiveUnimplemented(ctx context.Context) (*string, error) EmbeddedCase1(ctx context.Context) (*EmbeddedCase1, error) EmbeddedCase2(ctx context.Context) (*EmbeddedCase2, error) EmbeddedCase3(ctx context.Context) (*EmbeddedCase3, error) EnumInInput(ctx context.Context, input *InputWithEnumValue) (EnumTest, error) Shapes(ctx context.Context) ([]Shape, error) NoShape(ctx context.Context) (Shape, error) Node(ctx context.Context) (Node, error) NoShapeTypedNil(ctx context.Context) (Shape, error) Animal(ctx context.Context) (Animal, error) NotAnInterface(ctx context.Context) (BackedByInterface, error) Dog(ctx context.Context) (*Dog, error) Issue896a(ctx context.Context) ([]*CheckIssue896, error) MapStringInterface(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) MapNestedStringInterface(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) ErrorBubble(ctx context.Context) (*Error, error) ErrorBubbleList(ctx context.Context) ([]*Error, error) ErrorList(ctx context.Context) ([]*Error, error) Errors(ctx context.Context) (*Errors, error) Valid(ctx context.Context) (string, error) Invalid(ctx context.Context) (string, error) Panics(ctx context.Context) (*Panics, error) PrimitiveObject(ctx context.Context) ([]Primitive, error) PrimitiveStringObject(ctx context.Context) ([]PrimitiveString, error) PtrToAnyContainer(ctx context.Context) (*PtrToAnyContainer, error) PtrToSliceContainer(ctx context.Context) (*PtrToSliceContainer, error) Infinity(ctx context.Context) (float64, error) StringFromContextInterface(ctx context.Context) (*StringFromContextInterface, error) StringFromContextFunction(ctx context.Context) (string, error) DefaultScalar(ctx context.Context, arg string) (string, error) Slices(ctx context.Context) (*Slices, error) ScalarSlice(ctx context.Context) ([]byte, error) Fallback(ctx context.Context, arg FallbackToStringEncoding) (FallbackToStringEncoding, error) OptionalUnion(ctx context.Context) (TestUnion, error) VOkCaseValue(ctx context.Context) (*VOkCaseValue, error) VOkCaseNil(ctx context.Context) (*VOkCaseNil, error) ValidType(ctx context.Context) (*ValidType, error) VariadicModel(ctx context.Context) (*VariadicModel, error) WrappedStruct(ctx context.Context) (*WrappedStruct, error) WrappedScalar(ctx context.Context) (otherpkg.Scalar, error) WrappedMap(ctx context.Context) (WrappedMap, error) WrappedSlice(ctx context.Context) (WrappedSlice, error) }
type Rectangle ¶
type Rectangle struct {
Length, Width float64
Coordinates
}
type RecursiveInputSlice ¶
type RecursiveInputSlice struct {
Self []RecursiveInputSlice
}
type Resolver ¶
type Resolver struct{}
func (*Resolver) BackedByInterface ¶
func (r *Resolver) BackedByInterface() BackedByInterfaceResolver
BackedByInterface returns BackedByInterfaceResolver implementation.
func (*Resolver) DeferModel ¶ added in v0.17.32
func (r *Resolver) DeferModel() DeferModelResolver
DeferModel returns DeferModelResolver implementation.
func (*Resolver) Errors ¶
func (r *Resolver) Errors() ErrorsResolver
Errors returns ErrorsResolver implementation.
func (*Resolver) ForcedResolver ¶
func (r *Resolver) ForcedResolver() ForcedResolverResolver
ForcedResolver returns ForcedResolverResolver implementation.
func (*Resolver) ModelMethods ¶
func (r *Resolver) ModelMethods() ModelMethodsResolver
ModelMethods returns ModelMethodsResolver implementation.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) OverlappingFields ¶
func (r *Resolver) OverlappingFields() OverlappingFieldsResolver
OverlappingFields returns OverlappingFieldsResolver implementation.
func (*Resolver) Panics ¶
func (r *Resolver) Panics() PanicsResolver
Panics returns PanicsResolver implementation.
func (*Resolver) Pet ¶ added in v0.17.3
func (r *Resolver) Pet() PetResolver
Pet returns PetResolver implementation.
func (*Resolver) Primitive ¶
func (r *Resolver) Primitive() PrimitiveResolver
Primitive returns PrimitiveResolver implementation.
func (*Resolver) PrimitiveString ¶
func (r *Resolver) PrimitiveString() PrimitiveStringResolver
PrimitiveString returns PrimitiveStringResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
Subscription returns SubscriptionResolver implementation.
func (*Resolver) User ¶
func (r *Resolver) User() UserResolver
User returns UserResolver implementation.
func (*Resolver) WrappedMap ¶
func (r *Resolver) WrappedMap() WrappedMapResolver
WrappedMap returns WrappedMapResolver implementation.
func (*Resolver) WrappedSlice ¶
func (r *Resolver) WrappedSlice() WrappedSliceResolver
WrappedSlice returns WrappedSliceResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { BackedByInterface() BackedByInterfaceResolver DeferModel() DeferModelResolver Errors() ErrorsResolver ForcedResolver() ForcedResolverResolver ModelMethods() ModelMethodsResolver Mutation() MutationResolver OverlappingFields() OverlappingFieldsResolver Panics() PanicsResolver Pet() PetResolver Primitive() PrimitiveResolver PrimitiveString() PrimitiveStringResolver Query() QueryResolver Subscription() SubscriptionResolver User() UserResolver WrappedMap() WrappedMapResolver WrappedSlice() WrappedSliceResolver FieldsOrderInput() FieldsOrderInputResolver }
type ShapeUnion ¶
type ShapeUnion interface { Area() float64 // contains filtered or unexported methods }
type SpecialInput ¶
type SpecialInput struct {
Nesting *NestedInput `json:"nesting"`
}
type StringFromContextInterface ¶
type StringFromContextInterface struct {
OperationName string
}
func (StringFromContextInterface) MarshalGQLContext ¶
func (*StringFromContextInterface) UnmarshalGQLContext ¶
func (i *StringFromContextInterface) UnmarshalGQLContext(ctx context.Context, v any) error
type Stub ¶
type Stub struct { BackedByInterfaceResolver struct { ID func(ctx context.Context, obj BackedByInterface) (string, error) } DeferModelResolver struct { Values func(ctx context.Context, obj *DeferModel) ([]string, error) } ErrorsResolver struct { A func(ctx context.Context, obj *Errors) (*Error, error) B func(ctx context.Context, obj *Errors) (*Error, error) C func(ctx context.Context, obj *Errors) (*Error, error) D func(ctx context.Context, obj *Errors) (*Error, error) E func(ctx context.Context, obj *Errors) (*Error, error) } ForcedResolverResolver struct { Field func(ctx context.Context, obj *ForcedResolver) (*Circle, error) } ModelMethodsResolver struct { ResolverField func(ctx context.Context, obj *ModelMethods) (bool, error) } MutationResolver struct { DefaultInput func(ctx context.Context, input DefaultInput) (*DefaultParametersMirror, error) OverrideValueViaInput func(ctx context.Context, input FieldsOrderInput) (*FieldsOrderPayload, error) UpdateSomething func(ctx context.Context, input SpecialInput) (string, error) UpdatePtrToPtr func(ctx context.Context, input UpdatePtrToPtrOuter) (*PtrToPtrOuter, error) } OverlappingFieldsResolver struct { OldFoo func(ctx context.Context, obj *OverlappingFields) (int, error) } PanicsResolver struct { FieldScalarMarshal func(ctx context.Context, obj *Panics) ([]MarshalPanic, error) ArgUnmarshal func(ctx context.Context, obj *Panics, u []MarshalPanic) (bool, error) } PetResolver struct { Friends func(ctx context.Context, obj *Pet, limit *int) ([]*Pet, error) } PrimitiveResolver struct { Value func(ctx context.Context, obj *Primitive) (int, error) } PrimitiveStringResolver struct { Value func(ctx context.Context, obj *PrimitiveString) (string, error) Len func(ctx context.Context, obj *PrimitiveString) (int, error) } QueryResolver struct { InvalidIdentifier func(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) Collision func(ctx context.Context) (*introspection1.It, error) MapInput func(ctx context.Context, input map[string]interface{}) (*bool, error) Recursive func(ctx context.Context, input *RecursiveInputSlice) (*bool, error) NestedInputs func(ctx context.Context, input [][]*OuterInput) (*bool, error) NestedOutputs func(ctx context.Context) ([][]*OuterObject, error) ModelMethods func(ctx context.Context) (*ModelMethods, error) User func(ctx context.Context, id int) (*User, error) NullableArg func(ctx context.Context, arg *int) (*string, error) InputSlice func(ctx context.Context, arg []string) (bool, error) InputNullableSlice func(ctx context.Context, arg []string) (bool, error) InputOmittable func(ctx context.Context, arg OmittableInput) (string, error) ShapeUnion func(ctx context.Context) (ShapeUnion, error) Autobind func(ctx context.Context) (*Autobind, error) DeprecatedField func(ctx context.Context) (string, error) Overlapping func(ctx context.Context) (*OverlappingFields, error) DefaultParameters func(ctx context.Context, falsyBoolean *bool, truthyBoolean *bool) (*DefaultParametersMirror, error) DeferSingle func(ctx context.Context) (*DeferModel, error) DeferMultiple func(ctx context.Context) ([]*DeferModel, error) DirectiveArg func(ctx context.Context, arg string) (*string, error) DirectiveNullableArg func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (*string, error) DirectiveSingleNullableArg func(ctx context.Context, arg1 *string) (*string, error) DirectiveInputNullable func(ctx context.Context, arg *InputDirectives) (*string, error) DirectiveInput func(ctx context.Context, arg InputDirectives) (*string, error) DirectiveInputType func(ctx context.Context, arg InnerInput) (*string, error) DirectiveObject func(ctx context.Context) (*ObjectDirectives, error) DirectiveObjectWithCustomGoModel func(ctx context.Context) (*ObjectDirectivesWithCustomGoModel, error) DirectiveFieldDef func(ctx context.Context, ret string) (string, error) DirectiveField func(ctx context.Context) (*string, error) DirectiveDouble func(ctx context.Context) (*string, error) DirectiveUnimplemented func(ctx context.Context) (*string, error) EmbeddedCase1 func(ctx context.Context) (*EmbeddedCase1, error) EmbeddedCase2 func(ctx context.Context) (*EmbeddedCase2, error) EmbeddedCase3 func(ctx context.Context) (*EmbeddedCase3, error) EnumInInput func(ctx context.Context, input *InputWithEnumValue) (EnumTest, error) Shapes func(ctx context.Context) ([]Shape, error) NoShape func(ctx context.Context) (Shape, error) Node func(ctx context.Context) (Node, error) NoShapeTypedNil func(ctx context.Context) (Shape, error) Animal func(ctx context.Context) (Animal, error) NotAnInterface func(ctx context.Context) (BackedByInterface, error) Dog func(ctx context.Context) (*Dog, error) Issue896a func(ctx context.Context) ([]*CheckIssue896, error) MapStringInterface func(ctx context.Context, in map[string]interface{}) (map[string]interface{}, error) MapNestedStringInterface func(ctx context.Context, in *NestedMapInput) (map[string]interface{}, error) ErrorBubble func(ctx context.Context) (*Error, error) ErrorBubbleList func(ctx context.Context) ([]*Error, error) ErrorList func(ctx context.Context) ([]*Error, error) Errors func(ctx context.Context) (*Errors, error) Valid func(ctx context.Context) (string, error) Invalid func(ctx context.Context) (string, error) Panics func(ctx context.Context) (*Panics, error) PrimitiveObject func(ctx context.Context) ([]Primitive, error) PrimitiveStringObject func(ctx context.Context) ([]PrimitiveString, error) PtrToAnyContainer func(ctx context.Context) (*PtrToAnyContainer, error) PtrToSliceContainer func(ctx context.Context) (*PtrToSliceContainer, error) Infinity func(ctx context.Context) (float64, error) StringFromContextInterface func(ctx context.Context) (*StringFromContextInterface, error) StringFromContextFunction func(ctx context.Context) (string, error) DefaultScalar func(ctx context.Context, arg string) (string, error) Slices func(ctx context.Context) (*Slices, error) ScalarSlice func(ctx context.Context) ([]byte, error) Fallback func(ctx context.Context, arg FallbackToStringEncoding) (FallbackToStringEncoding, error) OptionalUnion func(ctx context.Context) (TestUnion, error) VOkCaseValue func(ctx context.Context) (*VOkCaseValue, error) VOkCaseNil func(ctx context.Context) (*VOkCaseNil, error) ValidType func(ctx context.Context) (*ValidType, error) VariadicModel func(ctx context.Context) (*VariadicModel, error) WrappedStruct func(ctx context.Context) (*WrappedStruct, error) WrappedScalar func(ctx context.Context) (otherpkg.Scalar, error) WrappedMap func(ctx context.Context) (WrappedMap, error) WrappedSlice func(ctx context.Context) (WrappedSlice, error) } SubscriptionResolver struct { Updated func(ctx context.Context) (<-chan string, error) InitPayload func(ctx context.Context) (<-chan string, error) DirectiveArg func(ctx context.Context, arg string) (<-chan *string, error) DirectiveNullableArg func(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) DirectiveDouble func(ctx context.Context) (<-chan *string, error) DirectiveUnimplemented func(ctx context.Context) (<-chan *string, error) Issue896b func(ctx context.Context) (<-chan []*CheckIssue896, error) ErrorRequired func(ctx context.Context) (<-chan *Error, error) } UserResolver struct { Friends func(ctx context.Context, obj *User) ([]*User, error) Pets func(ctx context.Context, obj *User, limit *int) ([]*Pet, error) } WrappedMapResolver struct { Get func(ctx context.Context, obj WrappedMap, key string) (string, error) } WrappedSliceResolver struct { Get func(ctx context.Context, obj WrappedSlice, idx int) (string, error) } FieldsOrderInputResolver struct { OverrideFirstField func(ctx context.Context, obj *FieldsOrderInput, data *string) error } }
func (*Stub) BackedByInterface ¶
func (r *Stub) BackedByInterface() BackedByInterfaceResolver
func (*Stub) DeferModel ¶ added in v0.17.32
func (r *Stub) DeferModel() DeferModelResolver
func (*Stub) Errors ¶
func (r *Stub) Errors() ErrorsResolver
func (*Stub) FieldsOrderInput ¶ added in v0.17.11
func (r *Stub) FieldsOrderInput() FieldsOrderInputResolver
func (*Stub) ForcedResolver ¶
func (r *Stub) ForcedResolver() ForcedResolverResolver
func (*Stub) ModelMethods ¶
func (r *Stub) ModelMethods() ModelMethodsResolver
func (*Stub) Mutation ¶
func (r *Stub) Mutation() MutationResolver
func (*Stub) OverlappingFields ¶
func (r *Stub) OverlappingFields() OverlappingFieldsResolver
func (*Stub) Panics ¶
func (r *Stub) Panics() PanicsResolver
func (*Stub) Pet ¶ added in v0.17.3
func (r *Stub) Pet() PetResolver
func (*Stub) Primitive ¶
func (r *Stub) Primitive() PrimitiveResolver
func (*Stub) PrimitiveString ¶
func (r *Stub) PrimitiveString() PrimitiveStringResolver
func (*Stub) Query ¶
func (r *Stub) Query() QueryResolver
func (*Stub) Subscription ¶
func (r *Stub) Subscription() SubscriptionResolver
func (*Stub) User ¶
func (r *Stub) User() UserResolver
func (*Stub) WrappedMap ¶
func (r *Stub) WrappedMap() WrappedMapResolver
func (*Stub) WrappedSlice ¶
func (r *Stub) WrappedSlice() WrappedSliceResolver
type Subscription ¶ added in v0.17.42
type Subscription struct { }
type SubscriptionResolver ¶
type SubscriptionResolver interface { Updated(ctx context.Context) (<-chan string, error) InitPayload(ctx context.Context) (<-chan string, error) DirectiveArg(ctx context.Context, arg string) (<-chan *string, error) DirectiveNullableArg(ctx context.Context, arg *int, arg2 *int, arg3 *string) (<-chan *string, error) DirectiveDouble(ctx context.Context) (<-chan *string, error) DirectiveUnimplemented(ctx context.Context) (<-chan *string, error) Issue896b(ctx context.Context) (<-chan []*CheckIssue896, error) ErrorRequired(ctx context.Context) (<-chan *Error, error) }
type ThirdParty ¶
type ThirdParty struct {
// contains filtered or unexported fields
}
func UnmarshalThirdParty ¶
func UnmarshalThirdParty(input any) (ThirdParty, error)
type UpdatePtrToPtrInner ¶
type UpdatePtrToPtrOuter ¶
type UpdatePtrToPtrOuter struct { Name *string Inner **UpdatePtrToPtrInner StupidInner ********UpdatePtrToPtrInner }
type UserResolver ¶
type VOkCaseNil ¶
type VOkCaseNil struct{}
VOkCaseNil model
func (VOkCaseNil) Value ¶
func (v VOkCaseNil) Value() (string, bool)
type VOkCaseValue ¶
type VOkCaseValue struct{}
VOkCaseValue model
func (VOkCaseValue) Value ¶
func (v VOkCaseValue) Value() (string, bool)
type ValidInput ¶
type ValidInput struct { Break string `json:"break"` Default string `json:"default"` Func string `json:"func"` Interface string `json:"interface"` Select string `json:"select"` Case string `json:"case"` Defer string `json:"defer"` Go string `json:"go"` Map string `json:"map"` Struct string `json:"struct"` Chan string `json:"chan"` Else string `json:"else"` Goto string `json:"goto"` Package string `json:"package"` Switch string `json:"switch"` Const string `json:"const"` Fallthrough string `json:"fallthrough"` If string `json:"if"` Range string `json:"range"` Type string `json:"type"` Continue string `json:"continue"` For string `json:"for"` Import string `json:"import"` Return string `json:"return"` Var string `json:"var"` Underscore string `json:"_"` }
type ValidType ¶
type ValidType struct { DifferentCase string `json:"differentCase"` DifferentCaseOld string `json:"different_case"` ValidInputKeywords bool `json:"validInputKeywords"` ValidArgs bool `json:"validArgs"` }
These things are all valid, but without care generate invalid go code
type VariadicModel ¶ added in v0.17.3
type VariadicModel struct{}
func (VariadicModel) Value ¶ added in v0.17.3
func (v VariadicModel) Value(ctx context.Context, rank int, opts ...VariadicModelOption) (string, error)
type VariadicModelOption ¶ added in v0.17.3
type VariadicModelOption func(*VariadicModel)
type WrappedMap ¶
type WrappedMapResolver ¶
type WrappedScalar ¶
type WrappedSlice ¶
type WrappedSliceResolver ¶
type WrappedStruct ¶
Source Files ¶
- builtinscalar.generated.go
- bytes.go
- complexity.generated.go
- defaults.generated.go
- defer.generated.go
- directive.generated.go
- embedded.generated.go
- embedded.go
- enum.generated.go
- fields_order.generated.go
- fields_order.go
- interfaces.generated.go
- interfaces.go
- issue896.generated.go
- loops.generated.go
- maps.generated.go
- maps.go
- models-gen.go
- models.go
- mutation_with_custom_scalar.generated.go
- mutation_with_custom_scalar.go
- nulls.generated.go
- panics.generated.go
- prelude.generated.go
- primitive_objects.generated.go
- ptr_to_any.generated.go
- ptr_to_any.go
- ptr_to_ptr_input.generated.go
- ptr_to_ptr_input.go
- ptr_to_slice.generated.go
- ptr_to_slice.go
- recursive.go
- resolver.go
- root_.generated.go
- scalar_context.generated.go
- scalar_context.go
- scalar_default.generated.go
- schema.generated.go
- slices.generated.go
- stub.go
- thirdparty.go
- typefallback.generated.go
- useptr.generated.go
- v-ok.generated.go
- v-ok.go
- validtypes.generated.go
- variadic.generated.go
- variadic.go
- weird_type_cases.generated.go
- wrapped_type.generated.go
- wrapped_type.go