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

Method WithUser

ent/share_query.go:311–318  ·  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

309// WithUser tells the query-builder to eager-load the nodes that are connected to
310// the "user" edge. The optional arguments are used to configure the query builder of the edge.
311func (sq *ShareQuery) WithUser(opts ...func(*UserQuery)) *ShareQuery {
312 query := (&UserClient{config: sq.config}).Query()
313 for _, opt := range opts {
314 opt(query)
315 }
316 sq.withUser = query
317 return sq
318}
319
320// WithFile tells the query-builder to eager-load the nodes that are connected to
321// the "file" 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