NewQuery return an identity query with the default sorting (creation-desc).
()
| 17 | |
| 18 | // NewQuery return an identity query with the default sorting (creation-desc). |
| 19 | func NewQuery() *Query { |
| 20 | return &Query{ |
| 21 | OrderBy: OrderByCreation, |
| 22 | OrderDirection: OrderDescending, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | type Search []string |
| 27 |