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