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

Method WithFile

ent/share_query.go:322–329  ·  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

320// WithFile tells the query-builder to eager-load the nodes that are connected to
321// the "file" edge. The optional arguments are used to configure the query builder of the edge.
322func (sq *ShareQuery) WithFile(opts ...func(*FileQuery)) *ShareQuery {
323 query := (&FileClient{config: sq.config}).Query()
324 for _, opt := range opts {
325 opt(query)
326 }
327 sq.withFile = query
328 return sq
329}
330
331// GroupBy is used to group vertices by one or more fields/columns.
332// It is often used with aggregate functions, like: count, max, mean, min, sum.

Callers 4

RemoveEntitiesByIDMethod · 0.45
withShareEagerLoadingFunction · 0.45
withEntityEagerLoadingFunction · 0.45

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected