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)
| 66 | // Unique configures the query builder to filter duplicate records on query. |
| 67 | // By default, unique is set to true, and can be disabled using this method. |
| 68 | func (uq *UserQuery) Unique(unique bool) *UserQuery { |
| 69 | uq.ctx.Unique = &unique |
| 70 | return uq |
| 71 | } |
| 72 | |
| 73 | // Order specifies how the records should be ordered. |
| 74 | func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery { |