MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / WithDirectLinks

Method WithDirectLinks

ent/file_query.go:536–543  ·  view source on GitHub ↗

WithDirectLinks tells the query-builder to eager-load the nodes that are connected to the "direct_links" edge. The optional arguments are used to configure the query builder of the edge.

(opts ...func(*DirectLinkQuery))

Source from the content-addressed store, hash-verified

534// WithDirectLinks tells the query-builder to eager-load the nodes that are connected to
535// the "direct_links" edge. The optional arguments are used to configure the query builder of the edge.
536func (fq *FileQuery) WithDirectLinks(opts ...func(*DirectLinkQuery)) *FileQuery {
537 query := (&DirectLinkClient{config: fq.config}).Query()
538 for _, opt := range opts {
539 opt(query)
540 }
541 fq.withDirectLinks = query
542 return fq
543}
544
545// GroupBy is used to group vertices by one or more fields/columns.
546// It is often used with aggregate functions, like: count, max, mean, min, sum.

Callers 1

withFileEagerLoadingFunction · 0.80

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected