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/taxonomies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ts/types/taxonomies.ts') diff --git a/src/ts/types/taxonomies.ts b/src/ts/types/taxonomies.ts index 8a0fcc7..17fc022 100644 --- a/src/ts/types/taxonomies.ts +++ b/src/ts/types/taxonomies.ts @@ -61,7 +61,7 @@ export type RawTopic = TopicPreview & { }; export type TopicBy = { - topicBy: RawTopic; + topic: RawTopic; }; export type AllTopicsSlug = { @@ -99,7 +99,7 @@ export type RawThematic = TaxonomyPreview & { }; export type ThematicBy = { - thematicBy: RawThematic; + thematic: RawThematic; }; export type AllThematicsSlug = { -- cgit v1.2.3