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))
| 283 | // WithFile tells the query-builder to eager-load the nodes that are connected to |
| 284 | // the "file" edge. The optional arguments are used to configure the query builder of the edge. |
| 285 | func (mq *MetadataQuery) WithFile(opts ...func(*FileQuery)) *MetadataQuery { |
| 286 | query := (&FileClient{config: mq.config}).Query() |
| 287 | for _, opt := range opts { |
| 288 | opt(query) |
| 289 | } |
| 290 | mq.withFile = query |
| 291 | return mq |
| 292 | } |
| 293 | |
| 294 | // GroupBy is used to group vertices by one or more fields/columns. |
| 295 | // It is often used with aggregate functions, like: count, max, mean, min, sum. |