All executes the query and returns a list of Nodes.
(ctx context.Context)
| 184 | |
| 185 | // All executes the query and returns a list of Nodes. |
| 186 | func (nq *NodeQuery) All(ctx context.Context) ([]*Node, error) { |
| 187 | ctx = setContextOp(ctx, nq.ctx, "All") |
| 188 | if err := nq.prepareQuery(ctx); err != nil { |
| 189 | return nil, err |
| 190 | } |
| 191 | qr := querierAll[[]*Node, *NodeQuery]() |
| 192 | return withInterceptors[[]*Node](ctx, nq, qr, nq.inters) |
| 193 | } |
| 194 | |
| 195 | // AllX is like All, but panics if an error occurs. |
| 196 | func (nq *NodeQuery) AllX(ctx context.Context) []*Node { |
no test coverage detected