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