mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc: fix typos in paging.md (#3458)
This commit is contained in:
@@ -103,6 +103,7 @@ their author's name:
|
||||
// order with NULLs first unless otherwise specified.
|
||||
posts, err := client.Post.Query().
|
||||
Order(
|
||||
// highlight-next-line
|
||||
post.ByAuthorField(user.FieldName),
|
||||
).
|
||||
All(ctx)
|
||||
@@ -113,7 +114,7 @@ posts, err := client.Post.Query().
|
||||
post.ByAuthorField(
|
||||
user.FieldName,
|
||||
sql.OrderDesc(),
|
||||
sql.NullsNullFirst(),
|
||||
sql.OrderNullsFirst(),
|
||||
),
|
||||
// highlight-end
|
||||
).
|
||||
|
||||
Reference in New Issue
Block a user