AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 222 | |
| 223 | // AllX is like All, but panics if an error occurs. |
| 224 | func (_q *UserQuery) AllX(ctx context.Context) []*User { |
| 225 | nodes, err := _q.All(ctx) |
| 226 | if err != nil { |
| 227 | panic(err) |
| 228 | } |
| 229 | return nodes |
| 230 | } |
| 231 | |
| 232 | // IDs executes the query and returns a list of User IDs. |
| 233 | func (_q *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error) { |