WithFile tells the query-builder to eager-load the nodes that are connected to the "file" edge. The optional arguments are used to configure the query builder of the edge.
(opts ...func(*FileQuery))
| 334 | // WithFile tells the query-builder to eager-load the nodes that are connected to |
| 335 | // the "file" edge. The optional arguments are used to configure the query builder of the edge. |
| 336 | func (eq *EntityQuery) WithFile(opts ...func(*FileQuery)) *EntityQuery { |
| 337 | query := (&FileClient{config: eq.config}).Query() |
| 338 | for _, opt := range opts { |
| 339 | opt(query) |
| 340 | } |
| 341 | eq.withFile = query |
| 342 | return eq |
| 343 | } |
| 344 | |
| 345 | // WithUser tells the query-builder to eager-load the nodes that are connected to |
| 346 | // the "user" edge. The optional arguments are used to configure the query builder of the edge. |