Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Group struct { Account func(childComplexity int) int Avatar func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } LoginPayload struct { Token func(childComplexity int) int User func(childComplexity int) int } LogoutPayload struct { Success func(childComplexity int) int } Mutation struct { Login func(childComplexity int, input model.LoginInput) int Logout func(childComplexity int, input model.LogoutInput) int Register func(childComplexity int, input model.RegisterInput) int } Query struct { Group func(childComplexity int, id string) int User func(childComplexity int, id string) int } RegisterPayload struct { Token func(childComplexity int) int User func(childComplexity int) int } User struct { Account func(childComplexity int) int Avatar func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type MutationResolver ¶
type MutationResolver interface { Register(ctx context.Context, input model.RegisterInput) (*model.RegisterPayload, error) Login(ctx context.Context, input model.LoginInput) (*model.LoginPayload, error) Logout(ctx context.Context, input model.LogoutInput) (*model.LogoutPayload, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.