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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user