WithFile tells the query-builder to eager-load the nodes that are connected to the "file" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*FileQuery))
| 320 | // WithFile tells the query-builder to eager-load the nodes that are connected to |
| 321 | // the "file" edge. The optional arguments are used to configure the query builder of the edge. |
| 322 | func (sq *ShareQuery) WithFile(opts ...func(*FileQuery)) *ShareQuery { |
| 323 | query := (&FileClient{config: sq.config}).Query() |
| 324 | for _, opt := range opts { |
| 325 | opt(query) |
| 326 | } |
| 327 | sq.withFile = query |
| 328 | return sq |
| 329 | } |
| 330 | |
| 331 | // GroupBy is used to group vertices by one or more fields/columns. |
| 332 | // It is often used with aggregate functions, like: count, max, mean, min, sum. |
no test coverage detected