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

Method WithGroup

ent/user_query.go:486–493  ·  view source on GitHub ↗

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

(opts ...func(*GroupQuery))

Source from the content-addressed store, hash-verified

484// WithGroup tells the query-builder to eager-load the nodes that are connected to
485// the "group" edge. The optional arguments are used to configure the query builder of the edge.
486func (uq *UserQuery) WithGroup(opts ...func(*GroupQuery)) *UserQuery {
487 query := (&GroupClient{config: uq.config}).Query()
488 for _, opt := range opts {
489 opt(query)
490 }
491 uq.withGroup = query
492 return uq
493}
494
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.

Callers 1

withUserEagerLoadingFunction · 0.80

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected