aboutsummaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-27 11:12:47 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-27 11:12:47 +0100
commit7deed83dbb8835727c743662bee776794d460e74 (patch)
treedb66e3840c42c9c9a6964041d862a9d784ec4410 /src/services
parentef7912256cb4765d553b002c24b9752c2d5096ac (diff)
chore: display comments as a tree
I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth.
Diffstat (limited to 'src/services')
-rw-r--r--src/services/graphql/queries.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts
index a40446e..1cbb616 100644
--- a/src/services/graphql/queries.ts
+++ b/src/services/graphql/queries.ts
@@ -168,7 +168,7 @@ export const getPostBySlug = async (slug: string): Promise<Article> => {
}
}
commentCount
- comments {
+ comments(where: { order: ASC, orderby: COMMENT_DATE }) {
nodes {
approved
author {