aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/fetchers/topics/fetch-topic.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql/fetchers/topics/fetch-topic.ts')
-rw-r--r--src/services/graphql/fetchers/topics/fetch-topic.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/services/graphql/fetchers/topics/fetch-topic.ts b/src/services/graphql/fetchers/topics/fetch-topic.ts
index efc1d9e..9c01096 100644
--- a/src/services/graphql/fetchers/topics/fetch-topic.ts
+++ b/src/services/graphql/fetchers/topics/fetch-topic.ts
@@ -1,7 +1,7 @@
import type { Nullable, WPTopic } from '../../../../types';
import { fetchGraphQL, getGraphQLUrl } from '../../../../utils/helpers';
-type TopicResponse = {
+export type TopicResponse = {
topic: Nullable<WPTopic>;
};
@@ -55,6 +55,8 @@ const topicQuery = `query Topic($slug: ID!) {
afterMore
beforeMore
}
+ databaseId
+ date
featuredImage {
node {
altText
@@ -66,6 +68,7 @@ const topicQuery = `query Topic($slug: ID!) {
title
}
}
+ modified
seo {
metaDesc
title