Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
type Field struct {
*Type
GQLName string // The name of the field in graphql
GoMethodName string // The name of the method in go, if any
GoVarName string // The name of the var in go, if any
Args []FieldArgument // A list of arguments to be passed to this field
NoErr bool // If this is bound to a go method, does that method have an error as the second argument
Object *Object // A link back to the parent object
Default interface{} // The default value
}
func (*Field) IsConcurrent ¶
func (*Field) IsResolver ¶
func (*Field) ResolverDeclaration ¶
type FieldArgument ¶
type Interface ¶
type Interface struct {
*NamedType
Implementors []InterfaceImplementor
}
type InterfaceImplementor ¶
type Model ¶
type Model struct {
*NamedType
Fields []ModelField
}
type ModelBuild ¶
type ModelField ¶
type NamedType ¶
type NamedType struct {
Ref
IsScalar bool
IsInterface bool
IsInput bool
GQLType string // Name of the graphql type
Marshaler *Ref // If this type has an external marshaler this will be set
}
func (NamedType) IsMarshaled ¶
type NamedTypes ¶
type Object ¶
type Object struct {
*NamedType
Fields []Field
Satisfies []string
Root bool
DisableConcurrency bool
Stream bool
}
func (*Object) Implementors ¶
type Ref ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.