aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/topics.query.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-13 16:28:06 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-13 16:28:06 +0200
commit06ea295857e508a830669cb402d2156204309b1e (patch)
tree87db074b639c6bf1cd3b8bbe27858662196dc6b9 /src/services/graphql/topics.query.ts
parentdab72bb270ee2ee47a0b472d5e9e240cba7cbf0f (diff)
chore: add blog page widgets
Diffstat (limited to 'src/services/graphql/topics.query.ts')
-rw-r--r--src/services/graphql/topics.query.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/services/graphql/topics.query.ts b/src/services/graphql/topics.query.ts
index 8783799..6cc525e 100644
--- a/src/services/graphql/topics.query.ts
+++ b/src/services/graphql/topics.query.ts
@@ -115,3 +115,14 @@ export const topicsSlugQuery = `query TopicsSlug($first: Int = 10, $after: Strin
}
}
}`;
+
+/**
+ * Query the total number of topics.
+ */
+export const totalTopicsQuery = `query TopicsTotal {
+ topics {
+ pageInfo {
+ total
+ }
+ }
+}`;