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

Method WithFile

ent/entity_query.go:336–343  ·  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

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

Callers

nothing calls this directly

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected