Count returns the count of the given query.
(ctx context.Context)
| 224 | |
| 225 | // Count returns the count of the given query. |
| 226 | func (nq *NodeQuery) Count(ctx context.Context) (int, error) { |
| 227 | ctx = setContextOp(ctx, nq.ctx, "Count") |
| 228 | if err := nq.prepareQuery(ctx); err != nil { |
| 229 | return 0, err |
| 230 | } |
| 231 | return withInterceptors[int](ctx, nq, querierCount[*NodeQuery](), nq.inters) |
| 232 | } |
| 233 | |
| 234 | // CountX is like Count, but panics if an error occurs. |
| 235 | func (nq *NodeQuery) CountX(ctx context.Context) int { |
no test coverage detected