Added graphql queries

This commit is contained in:
2025-11-27 18:16:48 -05:00
parent f2aa778722
commit 59ff831b45
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import { gql } from "@urql/core";
const addGroup = gql`
mutation addGroup(
$groupID: BigInt
$groupName: String
$groupUsername: String
) {
addGroup(
groupID: $groupID
groupName: $groupName
groupUsername: $groupUsername
) {
telegramID
name
username
linksDeleted
createdAt
updatedAt
}
}
`;
export default addGroup;

View File

@@ -0,0 +1,16 @@
import { gql } from "@urql/core";
const incrementGroup = gql`
mutation incrementGroup($groupID: BigInt, $linksDeleted: Int) {
incrementGroup(groupID: $groupID, linksDeleted: $linksDeleted) {
telegramID
name
username
linksDeleted
createdAt
updatedAt
}
}
`;
export default incrementGroup;

View File

@@ -0,0 +1,12 @@
import { gql } from "@urql/core";
const increment = gql`
mutation increment($command: Boolean, $link: Boolean, $trigger: Boolean) {
increment(command: $command, link: $link, trigger: $trigger) {
createdAt
updatedAt
}
}
`;
export default increment;