From 235fe67d770f83131c9ec10b99012319440db690 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 15 May 2022 16:36:58 +0200 Subject: chore: add Search page --- src/services/graphql/articles.query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services/graphql/articles.query.ts') diff --git a/src/services/graphql/articles.query.ts b/src/services/graphql/articles.query.ts index e62835d..d65bc9e 100644 --- a/src/services/graphql/articles.query.ts +++ b/src/services/graphql/articles.query.ts @@ -166,8 +166,8 @@ export const articlesSlugQuery = `query ArticlesSlug($first: Int = 10, $after: S /** * Query the total number of articles. */ -export const totalArticlesQuery = `query PostsTotal { - posts { +export const totalArticlesQuery = `query PostsTotal($search: String = "") { + posts(where: {search: $search}) { pageInfo { total } -- cgit v1.2.3