Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type CloseIssue
- type Comment
- type ComplexityRoot
- type Config
- type DeleteUser
- type DirectiveRoot
- type EditedProject
- type EditedUser
- type Issue
- type MutationResolver
- type MutationResult
- type NewComment
- type NewIssue
- type NewProject
- type NewUser
- type Project
- type QueryResolver
- type Resolver
- type ResolverRoot
- type User
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 CloseIssue ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Comment struct { ID func(childComplexity int) int IssueID func(childComplexity int) int Text func(childComplexity int) int UserID func(childComplexity int) int } Issue struct { Comments func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int ProjectID func(childComplexity int) int Status func(childComplexity int) int } Mutation struct { CloseIssue func(childComplexity int, input CloseIssue) int CreateComment func(childComplexity int, input NewComment) int CreateIssue func(childComplexity int, input NewIssue) int CreateProject func(childComplexity int, input NewProject) int CreateUser func(childComplexity int, input NewUser) int DeleteUser func(childComplexity int, input DeleteUser) int UpdateComment func(childComplexity int, input NewComment) int UpdateProject func(childComplexity int, input EditedProject) int UpdateUser func(childComplexity int, input EditedUser) int } MutationResult struct { StatusCode func(childComplexity int) int StatusMessage func(childComplexity int) int } Project struct { Description func(childComplexity int) int ID func(childComplexity int) int Issues func(childComplexity int) int Name func(childComplexity int) int } Query struct { Project func(childComplexity int, id string) int Projects func(childComplexity int) int } User struct { DisplayName func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DeleteUser ¶
type DeleteUser struct {
ID string `json:"id"`
}
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EditedProject ¶
type EditedUser ¶
type MutationResolver ¶
type MutationResolver interface { CreateUser(ctx context.Context, input NewUser) (*User, error) UpdateUser(ctx context.Context, input EditedUser) (*User, error) DeleteUser(ctx context.Context, input DeleteUser) (*MutationResult, error) CreateProject(ctx context.Context, input NewProject) (*Project, error) UpdateProject(ctx context.Context, input EditedProject) (*Project, error) CreateIssue(ctx context.Context, input NewIssue) (*Issue, error) CloseIssue(ctx context.Context, input CloseIssue) (*Issue, error) CreateComment(ctx context.Context, input NewComment) ([]*Comment, error) UpdateComment(ctx context.Context, input NewComment) ([]*Comment, error) }
type MutationResult ¶
type NewComment ¶
type NewProject ¶
type QueryResolver ¶
type Resolver ¶
type Resolver struct{}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.