AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 245 | |
| 246 | // AllX is like All, but panics if an error occurs. |
| 247 | func (_q *APITokenQuery) AllX(ctx context.Context) []*APIToken { |
| 248 | nodes, err := _q.All(ctx) |
| 249 | if err != nil { |
| 250 | panic(err) |
| 251 | } |
| 252 | return nodes |
| 253 | } |
| 254 | |
| 255 | // IDs executes the query and returns a list of APIToken IDs. |
| 256 | func (_q *APITokenQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error) { |