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 (gcq *GitCommitQuery) Unique(unique bool) *GitCommitQuery { |
| 57 | gcq.ctx.Unique = &unique |
| 58 | return gcq |
| 59 | } |
| 60 | |
| 61 | // Order specifies how the records should be ordered. |
| 62 | func (gcq *GitCommitQuery) Order(o ...gitcommit.OrderOption) *GitCommitQuery { |