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