Versions in this module Expand all Collapse all v0 v0.0.2 Sep 9, 2024 Changes in this version + func GenerateCode(data *Data) error + type ArgSet struct + Args []*FieldArgument + FuncDecl string + type AugmentedSource struct + BuiltIn bool + Embeddable bool + RelativePath string + Source string + type Data struct + AllDirectives DirectiveList + AugmentedSources []AugmentedSource + ComplexityRoots map[string]*Object + Config *config.Config + Inputs Objects + Interfaces map[string]*Interface + MutationRoot *Object + Objects Objects + Plugins []any + QueryRoot *Object + ReferencedTypes map[string]*config.TypeReference + Schema *ast.Schema + SubscriptionRoot *Object + func BuildData(cfg *config.Config, plugins ...any) (*Data, error) + func (d *Data) Args() map[string][]*FieldArgument + func (d *Data) Directives() DirectiveList + func (d *Data) HasEmbeddableSources() bool + type Directive struct + Args []*FieldArgument + Builtin bool + Name string + func (d *Directive) ArgsFunc() string + func (d *Directive) CallArgs() string + func (d *Directive) Declaration() string + func (d *Directive) IsLocation(location ...ast.DirectiveLocation) bool + func (d *Directive) ResolveArgs(obj string, next int) string + type DirectiveList map[string]*Directive + func (dl DirectiveList) LocationDirectives(location string) DirectiveList + type Field struct + Args []*FieldArgument + Default any + Directives []*Directive + GoFieldName string + GoFieldType GoFieldType + GoReceiverName string + IsResolver bool + MethodHasContext bool + NoErr bool + Object *Object + Stream bool + TypeReference *config.TypeReference + VOkFunc bool + func (f *Field) ArgsFunc() string + func (f *Field) CallArgs() string + func (f *Field) ChildFieldContextFunc(name string) string + func (f *Field) ComplexityArgs() string + func (f *Field) ComplexitySignature() string + func (f *Field) DirectiveObjName() string + func (f *Field) FieldContextFunc() string + func (f *Field) GoNameUnexported() string + func (f *Field) GoResultName() (string, bool) + func (f *Field) HasDirectives() bool + func (f *Field) ImplDirectives() []*Directive + func (f *Field) IsConcurrent() bool + func (f *Field) IsInputObject() bool + func (f *Field) IsMap() bool + func (f *Field) IsMethod() bool + func (f *Field) IsReserved() bool + func (f *Field) IsRoot() bool + func (f *Field) IsVariable() bool + func (f *Field) ResolverType() string + func (f *Field) ShortInvocation() string + func (f *Field) ShortResolverDeclaration() string + func (f *Field) ShortResolverSignature(ft *goast.FuncType) string + type FieldArgument struct + CallArgumentDirectivesWithNull bool + Default any + Directives []*Directive + Object *Object + TypeReference *config.TypeReference + Value any + VarName string + func (f *FieldArgument) DirectiveObjName() string + func (f *FieldArgument) ImplDirectives() []*Directive + func (f *FieldArgument) Stream() bool + type GoFieldType int + const GoFieldMap + const GoFieldMethod + const GoFieldUndefined + const GoFieldVariable + type Interface struct + Implementors []InterfaceImplementor + InTypemap bool + Type types.Type + type InterfaceImplementor struct + TakeRef bool + Type types.Type + func (i *InterfaceImplementor) CanBeNil() bool + type Object struct + Directives []*Directive + DisableConcurrency bool + Fields []*Field + Implements []*ast.Definition + PointersInUnmarshalInput bool + ResolverInterface types.Type + Root bool + Stream bool + Type types.Type + func (o *Object) Description() string + func (o *Object) HasDirectives() bool + func (o *Object) HasField(name string) bool + func (o *Object) HasResolvers() bool + func (o *Object) HasUnmarshal() bool + func (o *Object) Implementors() string + func (o *Object) IsConcurrent() bool + func (o *Object) IsMap() bool + func (o *Object) IsReserved() bool + func (o *Object) Reference() types.Type + func (o *Object) UniqueFields() map[string][]*Field + type Objects []*Object + func (os Objects) ByName(name string) *Object