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 Type types.Type }
Entity represents a federated type that was declared in the GQL schema.
func (Entity) GetTypeInfo ¶ added in v0.17.45
GetTypeInfo - get the imported package & type name combo. package.TypeName
type EntityResolver ¶ added in v0.15.0
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 ¶ added in v0.17.28
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.