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