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;