All executes the query and returns a list of Alerts.
(ctx context.Context)
| 258 | |
| 259 | // All executes the query and returns a list of Alerts. |
| 260 | func (_q *AlertQuery) All(ctx context.Context) ([]*Alert, error) { |
| 261 | ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) |
| 262 | if err := _q.prepareQuery(ctx); err != nil { |
| 263 | return nil, err |
| 264 | } |
| 265 | qr := querierAll[[]*Alert, *AlertQuery]() |
| 266 | return withInterceptors[[]*Alert](ctx, _q, qr, _q.inters) |
| 267 | } |
| 268 | |
| 269 | // AllX is like All, but panics if an error occurs. |
| 270 | func (_q *AlertQuery) AllX(ctx context.Context) []*Alert { |
no test coverage detected