Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrTypeNotFound = errors.New("type not found") )
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { FlatTable struct { Columns func(childComplexity int) int Name func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } Query struct { BuildReport func(childComplexity int, clause *model.ReportClause) int DbConnection func(childComplexity int, cred *model.DBConnection) int Jaw func(childComplexity int) int Node func(childComplexity int, id string) int Nodes func(childComplexity int, ids []string) int // contains filtered or unexported fields } Report struct { ID func(childComplexity int) int } ReportData struct { Rows func(childComplexity int) int } User struct { FullName func(childComplexity int) int ID func(childComplexity int) int } Column struct { Name func(childComplexity int) int Type func(childComplexity int) int } // contains filtered or unexported fields }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id string) (ent.Noder, error) Nodes(ctx context.Context, ids []string) ([]ent.Noder, error) Jaw(ctx context.Context) (*ent.User, error) DbConnection(ctx context.Context, cred *model.DBConnection) (*model.FlatTable, error) BuildReport(ctx context.Context, clause *model.ReportClause) (*model.ReportData, error) }
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.