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

Method WithFiles

ent/user_query.go:497–504  ·  view source on GitHub ↗

WithFiles tells the query-builder to eager-load the nodes that are connected to the "files" 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

495// WithFiles tells the query-builder to eager-load the nodes that are connected to
496// the "files" edge. The optional arguments are used to configure the query builder of the edge.
497func (uq *UserQuery) WithFiles(opts ...func(*FileQuery)) *UserQuery {
498 query := (&FileClient{config: uq.config}).Query()
499 for _, opt := range opts {
500 opt(query)
501 }
502 uq.withFiles = query
503 return uq
504}
505
506// WithDavAccounts tells the query-builder to eager-load the nodes that are connected to
507// the "dav_accounts" 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