Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entity ¶
type Entity struct { Name string // The same name as the type declaration Def *ast.Definition Resolvers []*EntityResolver Requires []*Requires Multi bool }
Entity represents a federated type that was declared in the GQL schema.
type EntityResolver ¶
type EntityResolver struct { ResolverName string // The resolver name, such as FindUserByID KeyFields []*KeyField // The fields declared in @key. InputType types.Type // The Go generated input type for multi entity resolvers InputTypeName string }
func (*EntityResolver) LookupInputType ¶
func (e *EntityResolver) LookupInputType() string
type KeyField ¶
type KeyField struct { Definition *ast.FieldDefinition Field fieldset.Field // len > 1 for nested fields Type *config.TypeReference // The Go representation of that field type }
Click to show internal directories.
Click to hide internal directories.