WithShares tells the query-builder to eager-load the nodes that are connected to the "shares" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*ShareQuery))
| 523 | // WithShares tells the query-builder to eager-load the nodes that are connected to |
| 524 | // the "shares" edge. The optional arguments are used to configure the query builder of the edge. |
| 525 | func (fq *FileQuery) WithShares(opts ...func(*ShareQuery)) *FileQuery { |
| 526 | query := (&ShareClient{config: fq.config}).Query() |
| 527 | for _, opt := range opts { |
| 528 | opt(query) |
| 529 | } |
| 530 | fq.withShares = query |
| 531 | return fq |
| 532 | } |
| 533 | |
| 534 | // WithDirectLinks tells the query-builder to eager-load the nodes that are connected to |
| 535 | // the "direct_links" edge. The optional arguments are used to configure the query builder of the edge. |
no test coverage detected