AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 386 | |
| 387 | // AllX is like All, but panics if an error occurs. |
| 388 | func (uq *UserQuery) AllX(ctx context.Context) []*User { |
| 389 | nodes, err := uq.All(ctx) |
| 390 | if err != nil { |
| 391 | panic(err) |
| 392 | } |
| 393 | return nodes |
| 394 | } |
| 395 | |
| 396 | // IDs executes the query and returns a list of User IDs. |
| 397 | func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error) { |