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

Method WithMetas

pkg/database/ent/alert_query.go:396–403  ·  view source on GitHub ↗

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

(opts ...func(*MetaQuery))

Source from the content-addressed store, hash-verified

394// WithMetas tells the query-builder to eager-load the nodes that are connected to
395// the "metas" edge. The optional arguments are used to configure the query builder of the edge.
396func (_q *AlertQuery) WithMetas(opts ...func(*MetaQuery)) *AlertQuery {
397 query := (&MetaClient{config: _q.config}).Query()
398 for _, opt := range opts {
399 opt(query)
400 }
401 _q.withMetas = query
402 return _q
403}
404
405// GroupBy is used to group vertices by one or more fields/columns.
406// It is often used with aggregate functions, like: count, max, mean, min, sum.

Callers 2

QueryAlertWithFilterMethod · 0.80
GetAlertByIDMethod · 0.80

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected