Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { // These are separated because the type definition of the resolver object may live in a different file from the // resolver method implementations, for example when extending a type in a different graphql schema file Objects []*codegen.Object Resolvers []*Resolver RemainingSource string // contains filtered or unexported fields }
type Resolver ¶
type Resolver struct { Object *codegen.Object Field *codegen.Field PrevDecl *ast.FuncDecl Comment string ImplementationStr string ImplementationRender func(r *codegen.Field) string ImplementationFunc *ResolverImplementationFunc }
func (*Resolver) Implementation ¶
type ResolverBuild ¶
type ResolverFuncFieldMap ¶ added in v0.17.51
type ResolverImplementationFunc ¶ added in v0.17.51
type ResolverImplementationFunc struct { Type ResolverType Model string Return string Fields []ResolverFuncFieldMap }
type ResolverType ¶ added in v0.17.51
type ResolverType string
const ( GetOne ResolverType = "GET_ONE" GetList ResolverType = "GET_LIST" Create ResolverType = "CREATE" Update ResolverType = "UPDATE" Delete ResolverType = "DELETE" NA ResolverType = "NA" )
Click to show internal directories.
Click to hide internal directories.