Count returns the count of the given query.
(ctx context.Context)
| 277 | |
| 278 | // Count returns the count of the given query. |
| 279 | func (nvq *NodeVersionQuery) Count(ctx context.Context) (int, error) { |
| 280 | ctx = setContextOp(ctx, nvq.ctx, ent.OpQueryCount) |
| 281 | if err := nvq.prepareQuery(ctx); err != nil { |
| 282 | return 0, err |
| 283 | } |
| 284 | return withInterceptors[int](ctx, nvq, querierCount[*NodeVersionQuery](), nvq.inters) |
| 285 | } |
| 286 | |
| 287 | // CountX is like Count, but panics if an error occurs. |
| 288 | func (nvq *NodeVersionQuery) CountX(ctx context.Context) int { |
no test coverage detected