Versions in this module Expand all Collapse all v0 v0.11.4 Jan 7, 2023 Changes in this version + func NewQueryContext(parent context.Context, c *QueryContext) context.Context + type Config struct + Table string + type Edge interface + Descriptor func() *edge.Descriptor + type Field interface + Descriptor func() *field.Descriptor + type Hook func(Mutator) Mutator + type Index interface + Descriptor func() *index.Descriptor + type InterceptFunc func(Querier) Querier + func (f InterceptFunc) Intercept(next Querier) Querier + type Interceptor interface + Intercept func(Querier) Querier + type Interface interface + Annotations func() []schema.Annotation + Config func() Config + Edges func() []Edge + Fields func() []Field + Hooks func() []Hook + Indexes func() []Index + Interceptors func() []Interceptor + Mixin func() []Mixin + Policy func() Policy + Type func() + type Mixin interface + Annotations func() []schema.Annotation + Edges func() []Edge + Fields func() []Field + Hooks func() []Hook + Indexes func() []Index + Interceptors func() []Interceptor + Policy func() Policy + type MutateFunc func(context.Context, Mutation) (Value, error) + func (f MutateFunc) Mutate(ctx context.Context, m Mutation) (Value, error) + type Mutation interface + AddField func(name string, value Value) error + AddedEdges func() []string + AddedField func(name string) (Value, bool) + AddedFields func() []string + AddedIDs func(name string) []Value + ClearEdge func(name string) error + ClearField func(name string) error + ClearedEdges func() []string + ClearedFields func() []string + EdgeCleared func(name string) bool + Field func(name string) (Value, bool) + FieldCleared func(name string) bool + Fields func() []string + OldField func(ctx context.Context, name string) (Value, error) + Op func() Op + RemovedEdges func() []string + RemovedIDs func(name string) []Value + ResetEdge func(name string) error + ResetField func(name string) error + SetField func(name string, value Value) error + Type func() string + type Mutator interface + Mutate func(context.Context, Mutation) (Value, error) + type Op uint + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + func (i Op) Is(o Op) bool + func (i Op) String() string + type Policy interface + EvalMutation func(context.Context, Mutation) error + EvalQuery func(context.Context, Query) error + type Querier interface + Query func(context.Context, Query) (Value, error) + type QuerierFunc func(context.Context, Query) (Value, error) + func (f QuerierFunc) Query(ctx context.Context, q Query) (Value, error) + type Query any + type QueryContext struct + Op string + Type string + func QueryFromContext(ctx context.Context) *QueryContext + type Schema struct + func (Schema) Annotations() []schema.Annotation + func (Schema) Config() Config + func (Schema) Edges() []Edge + func (Schema) Fields() []Field + func (Schema) Hooks() []Hook + func (Schema) Indexes() []Index + func (Schema) Interceptors() []Interceptor + func (Schema) Mixin() []Mixin + func (Schema) Policy() Policy + type TraverseFunc func(context.Context, Query) error + func (f TraverseFunc) Intercept(next Querier) Querier + func (f TraverseFunc) Traverse(ctx context.Context, q Query) error + type Traverser interface + Traverse func(context.Context, Query) error + type Value any