aboutsummaryrefslogtreecommitdiffstats
path: root/src/services/graphql/topics.query.ts
diff options
context:
space:
mode:
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
+ }
+ }
+}`;