IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 215 | |
| 216 | // IDsX is like IDs, but panics if an error occurs. |
| 217 | func (nq *NodeQuery) IDsX(ctx context.Context) []int { |
| 218 | ids, err := nq.IDs(ctx) |
| 219 | if err != nil { |
| 220 | panic(err) |
| 221 | } |
| 222 | return ids |
| 223 | } |
| 224 | |
| 225 | // Count returns the count of the given query. |
| 226 | func (nq *NodeQuery) Count(ctx context.Context) (int, error) { |