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 { ForgotPassword func(childComplexity int, email string) int Login func(childComplexity int, input RegisterLogin) int Register func(childComplexity int, input RegisterLogin) int ResetPassword func(childComplexity int, resetToken string, password string) int UpdateUser func(childComplexity int, input UpdateUser) int } Query struct { User func(childComplexity int, id int) int UserProfile func(childComplexity int) int } RegisterLoginOutput struct { Token func(childComplexity int) int User func(childComplexity int) int } User struct { Active func(childComplexity int) int Email func(childComplexity int) int FirstName func(childComplexity int) int ID func(childComplexity int) int LastName func(childComplexity int) int Role 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 RegisterLogin) (*RegisterLoginOutput, error) Login(ctx context.Context, input RegisterLogin) (*RegisterLoginOutput, error) UpdateUser(ctx context.Context, input UpdateUser) (*User, error) ForgotPassword(ctx context.Context, email string) (bool, error) ResetPassword(ctx context.Context, resetToken string, password string) (*RegisterLoginOutput, error) }
type QueryResolver ¶
type RegisterLogin ¶
type RegisterLoginOutput ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
type UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.