Skip to content

Commit

Permalink
feat: deprecate mutations of project & task feature in events
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhbizzle committed Jan 3, 2024
1 parent 5452681 commit 498aad7
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions src/GraphQl/Mutations/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,85 +525,6 @@ export const REGISTER_EVENT = gql`
}
`;

export const ADD_EVENT_PROJECT_MUTATION = gql`
mutation AddEventProject(
$title: String!
$description: String!
$eventId: ID!
) {
createEventProject(
data: { title: $title, description: $description, eventId: $eventId }
) {
_id
}
}
`;

export const UPDATE_EVENT_PROJECT_MUTATION = gql`
mutation UpdateEventProject($title: String, $description: String, $id: ID!) {
updateEventProject(
id: $id
data: { title: $title, description: $description }
) {
_id
}
}
`;

export const DELETE_EVENT_PROJECT_MUTATION = gql`
mutation DeleteEventProject($id: ID!) {
removeEventProject(id: $id) {
_id
}
}
`;

export const ADD_EVENT_PROJECT_TASK_MUTATION = gql`
mutation AddEventTask(
$title: String!
$description: String!
$projectId: ID!
$deadline: DateTime!
) {
createTask(
eventProjectId: $projectId
data: { title: $title, description: $description, deadline: $deadline }
) {
_id
}
}
`;

export const UPDATE_EVENT_PROJECT_TASK_MUTATION = gql`
mutation UpdateEventTask(
$title: String!
$description: String!
$taskId: ID!
$deadline: DateTime!
$completed: Boolean!
) {
updateTask(
id: $taskId
data: {
title: $title
description: $description
deadline: $deadline
completed: $completed
}
) {
_id
}
}
`;

export const DELETE_EVENT_TASK_MUTATION = gql`
mutation DeleteTask($id: ID!) {
removeTask(id: $id) {
_id
}
}
`;

export const SET_TASK_VOLUNTEERS_MUTATION = gql`
mutation SetTaskVolunteers($id: ID!, $volunteers: [ID]!) {
setTaskVolunteers(id: $id, volunteers: $volunteers) {
Expand Down

0 comments on commit 498aad7

Please sign in to comment.