directives

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValueIsNil       = errors.New("value is nil")
	ErrValueIsEmpty     = errors.New("value is empty")
	ErrValueOutOfRange  = errors.New("value is out of range")
	ErrValueIsNotNumber = errors.New("value is not a number")
)

Functions

func ValidateLength

func ValidateLength(ctx context.Context, obj any, next graphql.Resolver, min int, max int, trim, ornil bool) (res any, err error)

func ValidateNotEmpty

func ValidateNotEmpty(ctx context.Context, obj any, next graphql.Resolver, trim, ornil bool) (res any, err error)

func ValidateRange

func ValidateRange(ctx context.Context, obj any, next graphql.Resolver, min float64, max float64, ornil bool) (res any, err error)

func ValidateRegex

func ValidateRegex(ctx context.Context, obj any, next graphql.Resolver, pattern string, trim, ornil bool) (res any, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL