From 97dc68e22e754d8e478beee590dbe9868171af50 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 25 Jan 2022 15:33:27 +0100 Subject: chore: add reading time in posts meta --- src/services/graphql/queries.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/services/graphql/queries.ts') 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
=> { } } id + info { + readingTime + wordsCount + } modified seo { title @@ -269,6 +277,10 @@ export const getTopicBySlug = async (slug: string): Promise => { } } id + info { + readingTime + wordsCount + } commentCount contentParts { beforeMore @@ -302,6 +314,10 @@ export const getTopicBySlug = async (slug: string): Promise => { } } id + info { + readingTime + wordsCount + } modified seo { metaDesc @@ -402,6 +418,10 @@ export const getThematicBySlug = async (slug: string): Promise => { } } id + info { + readingTime + wordsCount + } commentCount contentParts { beforeMore @@ -428,6 +448,10 @@ export const getThematicBySlug = async (slug: string): Promise => { databaseId date id + info { + readingTime + wordsCount + } modified seo { metaDesc -- cgit v1.2.3