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 { Blog struct { Author func(childComplexity int) int Content func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int Title func(childComplexity int) int UpdatedAt func(childComplexity int) int } Mutation struct { DeleteBlog func(childComplexity int, input model.DeleteBlog) int EditBlog func(childComplexity int, input model.EditBlog) int Login func(childComplexity int, input model.LoginInput) int NewBlog func(childComplexity int, input model.NewBlog) int Register func(childComplexity int, input model.NewUser) int } Query struct { Blog func(childComplexity int, id string) int Blogs func(childComplexity int) int } User struct { CreatedAt func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Password func(childComplexity int) int UpdatedAt func(childComplexity int) int Username func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { Register(ctx context.Context, input model.NewUser) (string, error) Login(ctx context.Context, input model.LoginInput) (string, error) NewBlog(ctx context.Context, input model.NewBlog) (*model.Blog, error) EditBlog(ctx context.Context, input model.EditBlog) (*model.Blog, error) DeleteBlog(ctx context.Context, input model.DeleteBlog) (bool, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.