From be6ffbe5510908cd48fa47fe9f468c62c8cb03d2 Mon Sep 17 00:00:00 2001 From: Lucid Date: Sat, 29 Nov 2025 14:26:33 -0500 Subject: [PATCH] Added new queries --- src/graphql/queries/getTodaysStats.ts | 13 +++++++++++++ src/graphql/queries/getTotalStats.ts | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/graphql/queries/getTodaysStats.ts create mode 100644 src/graphql/queries/getTotalStats.ts diff --git a/src/graphql/queries/getTodaysStats.ts b/src/graphql/queries/getTodaysStats.ts new file mode 100644 index 0000000..fe98819 --- /dev/null +++ b/src/graphql/queries/getTodaysStats.ts @@ -0,0 +1,13 @@ +import { gql } from "@urql/next"; + +const GetTodaysStatsQuery = gql` + query GetTodayStats { + getTodayStats { + commandResponses + linksDeleted + timesTriggered + } + } +`; + +export default GetTodaysStatsQuery; diff --git a/src/graphql/queries/getTotalStats.ts b/src/graphql/queries/getTotalStats.ts new file mode 100644 index 0000000..9fcb87f --- /dev/null +++ b/src/graphql/queries/getTotalStats.ts @@ -0,0 +1,13 @@ +import { gql } from "@urql/next"; + +const GetTotalStatsQuery = gql` + query GetTotalStats { + getTotalStats { + commandResponses + linksDeleted + timesTriggered + } + } +`; + +export default GetTotalStatsQuery;