AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 193 | |
| 194 | // AllX is like All, but panics if an error occurs. |
| 195 | func (tq *TaskQuery) AllX(ctx context.Context) []*Task { |
| 196 | nodes, err := tq.All(ctx) |
| 197 | if err != nil { |
| 198 | panic(err) |
| 199 | } |
| 200 | return nodes |
| 201 | } |
| 202 | |
| 203 | // IDs executes the query and returns a list of Task IDs. |
| 204 | func (tq *TaskQuery) IDs(ctx context.Context) (ids []int, err error) { |