aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/fetchers/thematics/fetch-thematics-list.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql/fetchers/thematics/fetch-thematics-list.ts')
-rw-r--r--src/services/graphql/fetchers/thematics/fetch-thematics-list.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/services/graphql/fetchers/thematics/fetch-thematics-list.ts b/src/services/graphql/fetchers/thematics/fetch-thematics-list.ts
index f4d22c6..7e1e582 100644
--- a/src/services/graphql/fetchers/thematics/fetch-thematics-list.ts
+++ b/src/services/graphql/fetchers/thematics/fetch-thematics-list.ts
@@ -8,7 +8,7 @@ import type {
} from '../../../../types';
import { fetchGraphQL, getGraphQLUrl } from '../../../../utils/helpers';
-type ThematicsListResponse = {
+export type ThematicsListResponse = {
thematics: Nullable<GraphQLConnection<WPThematicPreview>>;
};
@@ -42,6 +42,11 @@ const thematicsListQuery = `query ThematicsList($after: String, $before: String,
title
}
}
+ pageInfo {
+ endCursor
+ hasNextPage
+ total
+ }
}
}`;