WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*UserQuery))
| 283 | // WithUser tells the query-builder to eager-load the nodes that are connected to |
| 284 | // the "user" edge. The optional arguments are used to configure the query builder of the edge. |
| 285 | func (tq *TaskQuery) WithUser(opts ...func(*UserQuery)) *TaskQuery { |
| 286 | query := (&UserClient{config: tq.config}).Query() |
| 287 | for _, opt := range opts { |
| 288 | opt(query) |
| 289 | } |
| 290 | tq.withUser = query |
| 291 | return tq |
| 292 | } |
| 293 | |
| 294 | // GroupBy is used to group vertices by one or more fields/columns. |
| 295 | // It is often used with aggregate functions, like: count, max, mean, min, sum. |
no test coverage detected