WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*UserQuery))
| 457 | // WithOwner tells the query-builder to eager-load the nodes that are connected to |
| 458 | // the "owner" edge. The optional arguments are used to configure the query builder of the edge. |
| 459 | func (fq *FileQuery) WithOwner(opts ...func(*UserQuery)) *FileQuery { |
| 460 | query := (&UserClient{config: fq.config}).Query() |
| 461 | for _, opt := range opts { |
| 462 | opt(query) |
| 463 | } |
| 464 | fq.withOwner = query |
| 465 | return fq |
| 466 | } |
| 467 | |
| 468 | // WithStoragePolicies tells the query-builder to eager-load the nodes that are connected to |
| 469 | // the "storage_policies" edge. The optional arguments are used to configure the query builder of the edge. |
no test coverage detected