graphql #81
24
src/lib/graphql/mutations/addGroupMutation.ts
Normal file
24
src/lib/graphql/mutations/addGroupMutation.ts
Normal 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;
|
||||||
16
src/lib/graphql/mutations/incrementGroupMutation.ts
Normal file
16
src/lib/graphql/mutations/incrementGroupMutation.ts
Normal 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;
|
||||||
12
src/lib/graphql/mutations/incrimentMutation.ts
Normal file
12
src/lib/graphql/mutations/incrimentMutation.ts
Normal 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;
|
||||||
Reference in New Issue
Block a user