Documentation ¶
Index ¶
- Variables
- func DefaultErrorPresenter(log zerolog.Logger) func(ctx context.Context, e error) *gqlerror.Error
- func NewGraphQlServer(es graphql.ExecutableSchema, log zerolog.Logger, enableIntrospection bool) *handler.Server
- func ValidateDateDirective(ctx context.Context, obj interface{}, next graphql.Resolver, ...) (res interface{}, err error)
- func ValidateDecimalDirective(ctx context.Context, obj interface{}, next graphql.Resolver, ...) (res interface{}, err error)
- func ValidateStringDirective(ctx context.Context, obj interface{}, next graphql.Resolver, ...) (res interface{}, err error)
- type ValidateDateRelative
- type ValidateDateRules
- type ValidateDecimalRules
- type ValidateStringRules
Constants ¶
This section is empty.
Variables ¶
View Source
var MB int64 = 1 << 20
Functions ¶
func DefaultErrorPresenter ¶ added in v0.0.6
func NewGraphQlServer ¶
func ValidateDateDirective ¶ added in v0.0.20
func ValidateDecimalDirective ¶ added in v0.5.2
func ValidateStringDirective ¶
Types ¶
type ValidateDateRelative ¶ added in v0.0.20
type ValidateDateRules ¶ added in v0.0.20
type ValidateDateRules struct { BeforeDate *scalars.GqlDate `json:"beforeDate"` BeforeRelative *ValidateDateRelative `json:"beforeRelative"` AfterDate *scalars.GqlDate `json:"afterDate"` AfterRelative *ValidateDateRelative `json:"afterRelative"` }
type ValidateDecimalRules ¶ added in v0.5.2
type ValidateStringRules ¶
Click to show internal directories.
Click to hide internal directories.