From 847b7303278c7894e5d6b055e0e654f6cf809330 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 9 Mar 2022 23:23:47 +0100 Subject: refactor: update graphql queries (#14) * refactor: replace postBy query postBy is now deprecated in WPGraphQL v1.7 * refactor: update post comments query PostBy is deprecated and it is now possible to use the post ID to query comments. * refactor: update get topic by slug query topicBy is deprecated * refactor: update get thematic by slug query thematicBy is deprecated --- src/ts/types/articles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ts/types/articles.ts') diff --git a/src/ts/types/articles.ts b/src/ts/types/articles.ts index ea90207..64d2860 100644 --- a/src/ts/types/articles.ts +++ b/src/ts/types/articles.ts @@ -1,5 +1,5 @@ import { ContentInfo, ContentParts, Dates } from './app'; -import { Comment, CommentsNode } from './comments'; +import { Comment } from './comments'; import { Cover, RawCover } from './cover'; import { SEO } from './seo'; import { RawTopicPreview, TopicPreview, ThematicPreview } from './taxonomies'; @@ -85,7 +85,7 @@ export type RawArticlePreview = Pick< }; export type PostBy = { - postBy: RawArticle; + post: RawArticle; }; export type ArticleProps = { -- cgit v1.2.3