doc: fix typos in paging.md (#3458)

This commit is contained in:
Ariel Mashraki
2023-04-09 17:12:41 +03:00
committed by GitHub
parent ba51a5990e
commit bb30c098a2

View File

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