Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectiveFunc ¶
type DirectiveFunc func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
func Admin ¶
func Admin() DirectiveFunc
Admin Require a user with the admin role to allow the request
func Auth ¶
func Auth() DirectiveFunc
Auth Make sure there is an authenticated user making this request.
Click to show internal directories.
Click to hide internal directories.