Versions in this module Expand all Collapse all v0 v0.0.2 Nov 9, 2022 Changes in this version + func FixedError(err error) oastypes.Hook + func If(hk oastypes.Hook, cond Condition) oastypes.Hook + func On(hk oastypes.Hook, op oastypes.Op) oastypes.Hook + func Reject(op oastypes.Op) oastypes.Hook + func Unless(hk oastypes.Hook, op oastypes.Op) oastypes.Hook + type Chain struct + func NewChain(hooks ...oastypes.Hook) Chain + func (c Chain) Append(hooks ...oastypes.Hook) Chain + func (c Chain) Extend(chain Chain) Chain + func (c Chain) Hook() oastypes.Hook + type Condition func(context.Context, oastypes.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 oastypes.Op) Condition + func Not(cond Condition) Condition + func Or(first, second Condition, rest ...Condition) Condition + type OASTypesFunc func(context.Context, *oastypes.OASTypesMutation) (oastypes.Value, error) + func (f OASTypesFunc) Mutate(ctx context.Context, m oastypes.Mutation) (oastypes.Value, error)