MCPcopy
hub / github.com/crowdsecurity/crowdsec / WithOwner

Method WithOwner

pkg/database/ent/meta_query.go:286–293  ·  view source on GitHub ↗

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

(opts ...func(*AlertQuery))

Source from the content-addressed store, hash-verified

284// WithOwner tells the query-builder to eager-load the nodes that are connected to
285// the "owner" edge. The optional arguments are used to configure the query builder of the edge.
286func (_q *MetaQuery) WithOwner(opts ...func(*AlertQuery)) *MetaQuery {
287 query := (&AlertClient{config: _q.config}).Query()
288 for _, opt := range opts {
289 opt(query)
290 }
291 _q.withOwner = query
292 return _q
293}
294
295// GroupBy is used to group vertices by one or more fields/columns.
296// It is often used with aggregate functions, like: count, max, mean, min, sum.

Callers 2

QueryAlertWithFilterMethod · 0.45
GetAlertByIDMethod · 0.45

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected