MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / WithFile

Method WithFile

ent/metadata_query.go:285–292  ·  view source on GitHub ↗

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))

Source from the content-addressed store, hash-verified

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.
285func (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.

Callers

nothing calls this directly

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected