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

Method WithUser

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

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

(opts ...func(*UserQuery))

Source from the content-addressed store, hash-verified

283// WithUser tells the query-builder to eager-load the nodes that are connected to
284// the "user" edge. The optional arguments are used to configure the query builder of the edge.
285func (tq *TaskQuery) WithUser(opts ...func(*UserQuery)) *TaskQuery {
286 query := (&UserClient{config: tq.config}).Query()
287 for _, opt := range opts {
288 opt(query)
289 }
290 tq.withUser = query
291 return tq
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 3

withShareEagerLoadingFunction · 0.45
withEntityEagerLoadingFunction · 0.45
withTaskEagerLoadingFunction · 0.45

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected