mirror of
https://github.com/ent/ent.git
synced 2026-04-30 14:40:57 +03:00
doc: update ordering fluent api (#3456)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user