Expanded groups scheme. Expanded addGroups mutation. Refactored addGroups mutation to update username and title of a group when used. Added an incrementGroups mutation that updates the new deletedLinks row in the scheme.

This commit is contained in:
2025-11-27 18:19:48 -05:00
parent 0cfa09de42
commit 4a2d8b2b3d
9 changed files with 219 additions and 120 deletions

View File

@@ -13,13 +13,16 @@ const typeDefs = /* GraphQL */ `
type Mutation {
init: String!
cronJob: TotalStats!
addGroup(groupID: Int, groupName: String): Groups!
addGroup(groupID: BigInt, groupName: String, groupUsername: String): Groups!
incrementGroup(groupID: BigInt, linksDeleted: Int): Groups!
increment(link: Boolean, command: Boolean, trigger: Boolean): DailyStats!
}
type Groups {
telegramID: Int
telegramID: BigInt
name: String
username: String
linksDeleted: BigInt
createdAt: Date
updatedAt: Date
}