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)
| 54 | // Unique configures the query builder to filter duplicate records on query. |
| 55 | // By default, unique is set to true, and can be disabled using this method. |
| 56 | func (eq *EntityQuery) Unique(unique bool) *EntityQuery { |
| 57 | eq.ctx.Unique = &unique |
| 58 | return eq |
| 59 | } |
| 60 | |
| 61 | // Order specifies how the records should be ordered. |
| 62 | func (eq *EntityQuery) Order(o ...entity.OrderOption) *EntityQuery { |