WithDirectLinks tells the query-builder to eager-load the nodes that are connected to the "direct_links" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*DirectLinkQuery))
| 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. |
| 536 | func (fq *FileQuery) WithDirectLinks(opts ...func(*DirectLinkQuery)) *FileQuery { |
| 537 | query := (&DirectLinkClient{config: fq.config}).Query() |
| 538 | for _, opt := range opts { |
| 539 | opt(query) |
| 540 | } |
| 541 | fq.withDirectLinks = query |
| 542 | return fq |
| 543 | } |
| 544 | |
| 545 | // GroupBy is used to group vertices by one or more fields/columns. |
| 546 | // It is often used with aggregate functions, like: count, max, mean, min, sum. |
no test coverage detected