Documentation ¶
Index ¶
Constants ¶
View Source
const (
UserKey = utils.Key("user")
)
Variables ¶
This section is empty.
Functions ¶
func GetNestedPreloads ¶
func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField) map[string]Field
Types ¶
type ErrorGQL ¶
type ErrorGQL error
var ( ErrAccessDenied ErrorGQL = fmt.Errorf("access denied") ErrUnknownEmote ErrorGQL = fmt.Errorf("unknown emote") ErrUnknownUser ErrorGQL = fmt.Errorf("unknown user") ErrUnknownRole ErrorGQL = fmt.Errorf("unknown role") ErrUnknownReport ErrorGQL = fmt.Errorf("unknown report") ErrBadObjectID ErrorGQL = fmt.Errorf("bad object id") ErrInternalServerError ErrorGQL = fmt.Errorf("internal server error") ErrBadInt ErrorGQL = fmt.Errorf("bad int") ErrDontBeSilly ErrorGQL = fmt.Errorf("don't be silly") )
Click to show internal directories.
Click to hide internal directories.