doc: document ordering checks for column names

This commit is contained in:
Ariel Mashraki
2020-09-13 14:01:44 +03:00
parent e552399bf3
commit 98bc30d618

View File

@@ -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().