entc/gen: fixed privacy filter for M2M edges (#2828)

* entc: fixed privacy filter for M2M

* all: codegen
This commit is contained in:
Giau. Tran Minh
2022-08-04 03:24:25 +07:00
committed by GitHub
parent 22c2f3a35d
commit 89007ec983
35 changed files with 147 additions and 0 deletions

View File

@@ -117,6 +117,9 @@ func ({{ $receiver }} *{{ $builder }}) sqlAll(ctx context.Context, hooks ...quer
s.AppendSelect(columns...)
s.SetDistinct(false)
})
if err := query.prepareQuery(ctx); err != nil {
return err
}
neighbors, err := query.sqlAll(ctx, func(_ context.Context, spec *sqlgraph.QuerySpec) {
assign := spec.Assign
values := spec.ScanValues