Sprava eventu a organizaci

This commit is contained in:
Michal Kváček
2023-09-20 13:26:13 +02:00
parent 6fbaef4a1e
commit 8c3c5ee48d
42 changed files with 624 additions and 56 deletions
+54
View File
@@ -0,0 +1,54 @@
import gql from "graphql-tag";
import {FRAGMENT_ORGANIZATION_FULL_INFO} from "src/graphql/fragments/organization";
export const CREATE_ORGANIZATION = gql`
mutation createOrganization($input: CreateOrganizationInput!) {
createOrganization(input: $input) {
...organizationFullInfo
}
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
export const EDIT_ORGANIZATION = gql`
mutation editOrganization($id: Int!, $input: EditOrganizationInput!) {
editOrganization(id: $id, input: $input) {
...organizationFullInfo
}
}
${FRAGMENT_ORGANIZATION_FULL_INFO}
`;
export const ADD_USER_TO_ORGANIZATION = gql`
mutation addToOrganization($organizationId: Int!) {
addToOrganization(organizationId: $organizationId) {
users {
id
name
email
avatarImageUrl
}
}
}`;
export const REMOVE_USER_FROM_ORGANIZATION = gql`
mutation removeFromOrganization($organizationId: Int!) {
removeFromOrganization(organizationId: $organizationId) {
users {
id
name
email
avatarImageUrl
}
}
}`;
// export const DELETE_ORGANIZATION = gql`
// mutation deleteOrganization($id: Int!) {
// deleteOrganization(id: $id) {
// id
// }
// }
// `;