All executes the query and returns a list of Users.
(ctx context.Context)
| 212 | |
| 213 | // All executes the query and returns a list of Users. |
| 214 | func (_q *UserQuery) All(ctx context.Context) ([]*User, error) { |
| 215 | ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) |
| 216 | if err := _q.prepareQuery(ctx); err != nil { |
| 217 | return nil, err |
| 218 | } |
| 219 | qr := querierAll[[]*User, *UserQuery]() |
| 220 | return withInterceptors[[]*User](ctx, _q, qr, _q.inters) |
| 221 | } |
| 222 | |
| 223 | // AllX is like All, but panics if an error occurs. |
| 224 | func (_q *UserQuery) AllX(ctx context.Context) []*User { |
no test coverage detected