WithDecisions tells the query-builder to eager-load the nodes that are connected to the "decisions" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*DecisionQuery))
| 372 | // WithDecisions tells the query-builder to eager-load the nodes that are connected to |
| 373 | // the "decisions" edge. The optional arguments are used to configure the query builder of the edge. |
| 374 | func (_q *AlertQuery) WithDecisions(opts ...func(*DecisionQuery)) *AlertQuery { |
| 375 | query := (&DecisionClient{config: _q.config}).Query() |
| 376 | for _, opt := range opts { |
| 377 | opt(query) |
| 378 | } |
| 379 | _q.withDecisions = query |
| 380 | return _q |
| 381 | } |
| 382 | |
| 383 | // WithEvents tells the query-builder to eager-load the nodes that are connected to |
| 384 | // the "events" edge. The optional arguments are used to configure the query builder of the edge. |
no test coverage detected