WithEntities tells the query-builder to eager-load the nodes that are connected to the "entities" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*EntityQuery))
| 512 | // WithEntities tells the query-builder to eager-load the nodes that are connected to |
| 513 | // the "entities" edge. The optional arguments are used to configure the query builder of the edge. |
| 514 | func (fq *FileQuery) WithEntities(opts ...func(*EntityQuery)) *FileQuery { |
| 515 | query := (&EntityClient{config: fq.config}).Query() |
| 516 | for _, opt := range opts { |
| 517 | opt(query) |
| 518 | } |
| 519 | fq.withEntities = query |
| 520 | return fq |
| 521 | } |
| 522 | |
| 523 | // WithShares tells the query-builder to eager-load the nodes that are connected to |
| 524 | // the "shares" edge. The optional arguments are used to configure the query builder of the edge. |
no test coverage detected