Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserResolver ¶
type UserResolver struct {
// contains filtered or unexported fields
}
UserResolver contains the database and the user model to resolve the graphql query against
func (*UserResolver) Email ¶
func (u *UserResolver) Email(ctx context.Context) string
Email resolves the email attribute of the user
func (*UserResolver) ID ¶
func (u *UserResolver) ID(ctx context.Context) graphql.ID
ID resolves the ID attribute of the user
func (*UserResolver) Name ¶
func (u *UserResolver) Name(ctx context.Context) *string
Name resolves the full name of the user
Click to show internal directories.
Click to hide internal directories.