MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Unique

Method Unique

app/controlplane/pkg/data/ent/user_query.go:58–61  ·  view source on GitHub ↗

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

(unique bool)

Source from the content-addressed store, hash-verified

56// Unique configures the query builder to filter duplicate records on query.
57// By default, unique is set to true, and can be disabled using this method.
58func (_q *UserQuery) Unique(unique bool) *UserQuery {
59 _q.ctx.Unique = &unique
60 return _q
61}
62
63// Order specifies how the records should be ordered.
64func (_q *UserQuery) Order(o ...user.OrderOption) *UserQuery {

Callers 15

IDsMethod · 0.95
ForUpdateMethod · 0.95
ForShareMethod · 0.95
FieldsMethod · 0.45
EdgesMethod · 0.45
IndexesMethod · 0.45
FieldsMethod · 0.45
EdgesMethod · 0.45
FieldsMethod · 0.45
EdgesMethod · 0.45
FieldsMethod · 0.45
EdgesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected