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 {