ExistX is like Exist, but panics if an error occurs.
(ctx context.Context)
| 255 | |
| 256 | // ExistX is like Exist, but panics if an error occurs. |
| 257 | func (nq *NodeQuery) ExistX(ctx context.Context) bool { |
| 258 | exist, err := nq.Exist(ctx) |
| 259 | if err != nil { |
| 260 | panic(err) |
| 261 | } |
| 262 | return exist |
| 263 | } |
| 264 | |
| 265 | // Clone returns a duplicate of the NodeQuery builder, including all associated steps. It can be |
| 266 | // used to prepare common query builders and use them differently after the clone is made. |