summaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-25 15:33:27 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-25 15:38:50 +0100
commit97dc68e22e754d8e478beee590dbe9868171af50 (patch)
tree01876f9b236b0a4ba696d5b084bd766b69046494 /src/services
parent71942c86311a9d1ddf4ae486d811f8393786e855 (diff)
chore: add reading time in posts meta
Diffstat (limited to 'src/services')
-rw-r--r--src/services/graphql/queries.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts
index e7a76b1..0817cf6 100644
--- a/src/services/graphql/queries.ts
+++ b/src/services/graphql/queries.ts
@@ -87,6 +87,10 @@ export const getPublishedPosts = async ({
}
}
id
+ info {
+ readingTime
+ wordsCount
+ }
databaseId
modified
slug
@@ -201,6 +205,10 @@ export const getPostBySlug = async (slug: string): Promise<Article> => {
}
}
id
+ info {
+ readingTime
+ wordsCount
+ }
modified
seo {
title
@@ -269,6 +277,10 @@ export const getTopicBySlug = async (slug: string): Promise<Topic> => {
}
}
id
+ info {
+ readingTime
+ wordsCount
+ }
commentCount
contentParts {
beforeMore
@@ -302,6 +314,10 @@ export const getTopicBySlug = async (slug: string): Promise<Topic> => {
}
}
id
+ info {
+ readingTime
+ wordsCount
+ }
modified
seo {
metaDesc
@@ -402,6 +418,10 @@ export const getThematicBySlug = async (slug: string): Promise<Thematic> => {
}
}
id
+ info {
+ readingTime
+ wordsCount
+ }
commentCount
contentParts {
beforeMore
@@ -428,6 +448,10 @@ export const getThematicBySlug = async (slug: string): Promise<Thematic> => {
databaseId
date
id
+ info {
+ readingTime
+ wordsCount
+ }
modified
seo {
metaDesc