mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc: document ordering checks for column names
This commit is contained in:
@@ -28,7 +28,8 @@ users, err := client.User.
|
||||
|
||||
## Ordering
|
||||
|
||||
`Order` returns the entities sorted by the values of one or more fields.
|
||||
`Order` returns the entities sorted by the values of one or more fields. Note that, an error
|
||||
is returned if the given fields are not valid columns or foreign-keys.
|
||||
|
||||
```go
|
||||
users, err := client.User.Query().
|
||||
|
||||
Reference in New Issue
Block a user