Versions in this module Expand all Collapse all v0 v0.1.1 May 3, 2024 Changes in this version + func FixedError(err error) simple.Hook + func If(hk simple.Hook, cond Condition) simple.Hook + func On(hk simple.Hook, op simple.Op) simple.Hook + func Reject(op simple.Op) simple.Hook + func Unless(hk simple.Hook, op simple.Op) simple.Hook + type CategoryFunc func(context.Context, *simple.CategoryMutation) (simple.Value, error) + func (f CategoryFunc) Mutate(ctx context.Context, m simple.Mutation) (simple.Value, error) + type Chain struct + func NewChain(hooks ...simple.Hook) Chain + func (c Chain) Append(hooks ...simple.Hook) Chain + func (c Chain) Extend(chain Chain) Chain + func (c Chain) Hook() simple.Hook + type Condition func(context.Context, simple.Mutation) bool + func And(first, second Condition, rest ...Condition) Condition + func HasAddedFields(field string, fields ...string) Condition + func HasClearedFields(field string, fields ...string) Condition + func HasFields(field string, fields ...string) Condition + func HasOp(op simple.Op) Condition + func Not(cond Condition) Condition + func Or(first, second Condition, rest ...Condition) Condition + type PetFunc func(context.Context, *simple.PetMutation) (simple.Value, error) + func (f PetFunc) Mutate(ctx context.Context, m simple.Mutation) (simple.Value, error) + type UserFunc func(context.Context, *simple.UserMutation) (simple.Value, error) + func (f UserFunc) Mutate(ctx context.Context, m simple.Mutation) (simple.Value, error)