summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/gql/Queries.ts
diff options
context:
space:
mode:
authorWolfgang Müller2025-01-19 18:30:28 +0100
committerWolfgang Müller2025-01-19 23:36:36 +0100
commit91cfd5d306aedb4bdcc1c4045611bee7d2270462 (patch)
tree1e88be6e7757169a9cae7651bc7c4d558e7f7604 /frontend/src/gql/Queries.ts
parent261ceaa057742fc70c52885021221d7a89c28af7 (diff)
downloadhircine-91cfd5d306aedb4bdcc1c4045611bee7d2270462.tar.gz
frontend: Add basic statistics page
Diffstat (limited to 'frontend/src/gql/Queries.ts')
-rw-r--r--frontend/src/gql/Queries.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/gql/Queries.ts b/frontend/src/gql/Queries.ts
index cc9dd4c..28bbf63 100644
--- a/frontend/src/gql/Queries.ts
+++ b/frontend/src/gql/Queries.ts
@@ -200,6 +200,10 @@ export function frontpageQuery(client: Client) {
});
}
+export function statisticsQuery(client: Client) {
+ return queryStore({ client: client, query: gql.StatisticsDocument });
+}
+
export function fetchArtist(client: Client, id: number) {
return client
.query(gql.ArtistDocument, { id }, { requestPolicy: 'cache-and-network' })