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