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 { Mutation struct { AddNotes func(childComplexity int, input model.AddNotesInput) int DeletePhoto func(childComplexity int, input model.DeletePhotoInput) int DownloadPhoto func(childComplexity int, input model.DownloadPhotoInput) int TagPhoto func(childComplexity int, input model.TagPhotoInput) int UploadPhoto func(childComplexity int, input model.UploadPhotoInput) int } Photo struct { Deleted func(childComplexity int) int Name func(childComplexity int) int Notes func(childComplexity int) int Tags func(childComplexity int) int Updated func(childComplexity int) int } Query struct { Photos 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 { UploadPhoto(ctx context.Context, input model.UploadPhotoInput) (*model.Photo, error) DownloadPhoto(ctx context.Context, input model.DownloadPhotoInput) (*model.Photo, error) DeletePhoto(ctx context.Context, input model.DeletePhotoInput) (*model.Photo, error) TagPhoto(ctx context.Context, input model.TagPhotoInput) (*model.Photo, error) AddNotes(ctx context.Context, input model.AddNotesInput) (*model.Photo, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.