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)
| 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. |
| 58 | func (_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. |
| 64 | func (_q *UserQuery) Order(o ...user.OrderOption) *UserQuery { |