doc: update ordering fluent api (#3456)

This commit is contained in:
Ariel Mashraki
2023-04-09 15:00:16 +03:00
committed by GitHub
parent 064c9118b7
commit 5b1de3901a
6 changed files with 202 additions and 21 deletions

View File

@@ -222,6 +222,13 @@ func OrderDesc() OrderTermOption {
}
}
// OrderAsc returns an option to sort in ascending order.
func OrderAsc() OrderTermOption {
return func(o *OrderTermOptions) {
o.Desc = false
}
}
// OrderAs returns an option to set the alias for the ordering.
func OrderAs(as string) OrderTermOption {
return func(o *OrderTermOptions) {