WithFiles tells the query-builder to eager-load the nodes that are connected to the "files" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*FileQuery))
| 495 | // WithFiles tells the query-builder to eager-load the nodes that are connected to |
| 496 | // the "files" edge. The optional arguments are used to configure the query builder of the edge. |
| 497 | func (uq *UserQuery) WithFiles(opts ...func(*FileQuery)) *UserQuery { |
| 498 | query := (&FileClient{config: uq.config}).Query() |
| 499 | for _, opt := range opts { |
| 500 | opt(query) |
| 501 | } |
| 502 | uq.withFiles = query |
| 503 | return uq |
| 504 | } |
| 505 | |
| 506 | // WithDavAccounts tells the query-builder to eager-load the nodes that are connected to |
| 507 | // the "dav_accounts" edge. The optional arguments are used to configure the query builder of the edge. |