aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/graphql')
-rw-r--r--src/services/graphql/queries.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts
index 518cf75..a40446e 100644
--- a/src/services/graphql/queries.ts
+++ b/src/services/graphql/queries.ts
@@ -1,7 +1,6 @@
import { Slug } from '@ts/types/app';
import { Article, PostBy } from '@ts/types/articles';
import { AllPostsSlug, PostsList, RawPostsList } from '@ts/types/blog';
-import { Page, PageBy } from '@ts/types/pages';
import {
AllSubjectsSlug,
AllThematicsSlug,
@@ -11,7 +10,6 @@ import {
ThematicBy,
} from '@ts/types/taxonomies';
import {
- getFormattedPage,
getFormattedPost,
getFormattedPostPreview,
getFormattedSubject,
@@ -234,32 +232,6 @@ export const getPostBySlug = async (slug: string): Promise<Article> => {
};
//==============================================================================
-// Pages query
-//==============================================================================
-
-export const getPageByUri = async (slug: string): Promise<Page> => {
- const query = gql`
- query PageByUri($slug: String!) {
- pageBy(uri: $slug) {
- contentParts {
- afterMore
- beforeMore
- }
- date
- modified
- title
- }
- }
- `;
-
- const variables = { slug };
- const response = await fetchApi<PageBy>(query, variables);
- const page = getFormattedPage(response.pageBy);
-
- return page;
-};
-
-//==============================================================================
// Subject query
//==============================================================================