All executes the query and returns a list of Workflows.
(ctx context.Context)
| 356 | |
| 357 | // All executes the query and returns a list of Workflows. |
| 358 | func (_q *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error) { |
| 359 | ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) |
| 360 | if err := _q.prepareQuery(ctx); err != nil { |
| 361 | return nil, err |
| 362 | } |
| 363 | qr := querierAll[[]*Workflow, *WorkflowQuery]() |
| 364 | return withInterceptors[[]*Workflow](ctx, _q, qr, _q.inters) |
| 365 | } |
| 366 | |
| 367 | // AllX is like All, but panics if an error occurs. |
| 368 | func (_q *WorkflowQuery) AllX(ctx context.Context) []*Workflow { |
no test coverage detected