From b6f1b6f3e40afe08dae21526c75750d07513887e Mon Sep 17 00:00:00 2001 From: Lucid Date: Wed, 10 Dec 2025 19:16:27 -0500 Subject: [PATCH] Added query to graphql types. --- src/graphql/types.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 46a233a..3f1bce5 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -9,27 +9,28 @@ const typeDefs = /* GraphQL */ ` getTodayStats: DailyStats! getStatsRange(startDate: Date, endDate: Date): [DailyStats] getTotalStats: TotalStats! + getGroupStats(groupID: BigInt!): Groups } type Mutation { - init(mutationKey: String): String - cronJob(mutationKey: String): TotalStats + init(mutationKey: String): String! + cronJob(mutationKey: String): TotalStats! addGroup( groupID: BigInt! groupName: String! groupUsername: String mutationKey: String - ): Groups + ): Groups! incrementGroup( groupID: BigInt! linksDeleted: Int! mutationKey: String - ): Groups + ): Groups! increment( link: Boolean command: Boolean trigger: Boolean mutationKey: String - ): DailyStats + ): DailyStats! } type Groups {