WithNode tells the query-builder to eager-load the nodes that are connected to the "node" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*NodeQuery))
| 340 | // WithNode tells the query-builder to eager-load the nodes that are connected to |
| 341 | // the "node" edge. The optional arguments are used to configure the query builder of the edge. |
| 342 | func (nvq *NodeVersionQuery) WithNode(opts ...func(*NodeQuery)) *NodeVersionQuery { |
| 343 | query := (&NodeClient{config: nvq.config}).Query() |
| 344 | for _, opt := range opts { |
| 345 | opt(query) |
| 346 | } |
| 347 | nvq.withNode = query |
| 348 | return nvq |
| 349 | } |
| 350 | |
| 351 | // WithStorageFile tells the query-builder to eager-load the nodes that are connected to |
| 352 | // the "storage_file" edge. The optional arguments are used to configure the query builder of the edge. |