Versions in this module Expand all Collapse all v0 v0.1.1 Oct 29, 2019 v0.1.0 Jul 4, 2019 Changes in this version + var AllUserGender = []UserGender + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type ComplexityRoot struct + Mutation struct{ ... } + Query struct{ ... } + User struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type DirectiveRoot struct + type MutationResolver interface + ChangePassword func(ctx context.Context, email string, newPassword string) (*User, error) + CreateUser func(ctx context.Context, input UserInput) (*User, error) + DeleteUser func(ctx context.Context, id string) (*User, error) + VerifyUser func(ctx context.Context, email string) (*User, error) + type QueryResolver interface + GetUser func(ctx context.Context, email string) (*User, error) + Login func(ctx context.Context, email string, password string) (*User, error) + type Resolver struct + DB *database.DB + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + type ResolverRoot interface + Mutation func() MutationResolver + Query func() QueryResolver + type User struct + Email string + EmailVerified bool + ID string + PasswordHash string + UpdatedAt time.Time + func (n *User) UpdatePassword(p string) error + func (n User) ValidatePassword(p string) error + type UserGender string + const UserGenderFemale + const UserGenderMale + func (e *UserGender) UnmarshalGQL(v interface{}) error + func (e UserGender) IsValid() bool + func (e UserGender) MarshalGQL(w io.Writer) + func (e UserGender) String() string + type UserInput struct + Email string + FamilyName *string + GivenName *string + MiddleName *string + Password string