WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*GroupQuery))
| 484 | // WithGroup tells the query-builder to eager-load the nodes that are connected to |
| 485 | // the "group" edge. The optional arguments are used to configure the query builder of the edge. |
| 486 | func (uq *UserQuery) WithGroup(opts ...func(*GroupQuery)) *UserQuery { |
| 487 | query := (&GroupClient{config: uq.config}).Query() |
| 488 | for _, opt := range opts { |
| 489 | opt(query) |
| 490 | } |
| 491 | uq.withGroup = query |
| 492 | return uq |
| 493 | } |
| 494 | |
| 495 | // WithFiles tells the query-builder to eager-load the nodes that are connected to |
| 496 | // the "files" edge. The optional arguments are used to configure the query builder of the edge. |
no test coverage detected