WithResults tells the query-builder to eager-load the nodes that are connected to the "results" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*CIWorkflowResultQuery))
| 289 | // WithResults tells the query-builder to eager-load the nodes that are connected to |
| 290 | // the "results" edge. The optional arguments are used to configure the query builder of the edge. |
| 291 | func (gcq *GitCommitQuery) WithResults(opts ...func(*CIWorkflowResultQuery)) *GitCommitQuery { |
| 292 | query := (&CIWorkflowResultClient{config: gcq.config}).Query() |
| 293 | for _, opt := range opts { |
| 294 | opt(query) |
| 295 | } |
| 296 | gcq.withResults = query |
| 297 | return gcq |
| 298 | } |
| 299 | |
| 300 | // GroupBy is used to group vertices by one or more fields/columns. |
| 301 | // It is often used with aggregate functions, like: count, max, mean, min, sum. |