WithStoragePolicy tells the query-builder to eager-load the nodes that are connected to the "storage_policy" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*StoragePolicyQuery))
| 284 | // WithStoragePolicy tells the query-builder to eager-load the nodes that are connected to |
| 285 | // the "storage_policy" edge. The optional arguments are used to configure the query builder of the edge. |
| 286 | func (nq *NodeQuery) WithStoragePolicy(opts ...func(*StoragePolicyQuery)) *NodeQuery { |
| 287 | query := (&StoragePolicyClient{config: nq.config}).Query() |
| 288 | for _, opt := range opts { |
| 289 | opt(query) |
| 290 | } |
| 291 | nq.withStoragePolicy = query |
| 292 | return nq |
| 293 | } |
| 294 | |
| 295 | // GroupBy is used to group vertices by one or more fields/columns. |
| 296 | // It is often used with aggregate functions, like: count, max, mean, min, sum. |
no test coverage detected