- Progress Commit

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-03-21 13:42:08 -04:00
parent ab2323e5c1
commit 9012e4deec
4 changed files with 24 additions and 12 deletions

View File

@@ -134,8 +134,8 @@ export const MUTATION_TOGGLE_TASK_DELETED = gql`
* Insert new task mutation
* @type {DocumentNode}
*/
export const INSERT_NEW_TASK = gql`
mutation INSERT_NEW_TASK($taskInput: [tasks_insert_input!]!) {
export const MUTATION_INSERT_NEW_TASK = gql`
mutation MUTATION_INSERT_NEW_TASK($taskInput: [tasks_insert_input!]!) {
insert_tasks(objects: $taskInput) {
returning {
id
@@ -165,8 +165,8 @@ export const INSERT_NEW_TASK = gql`
* Update task mutation
* @type {DocumentNode}
*/
export const UPDATE_TASK = gql`
mutation UPDATE_TASK($taskId: uuid!, $task: tasks_set_input!) {
export const MUTATION_UPDATE_TASK = gql`
mutation MUTATION_UPDATE_TASK($taskId: uuid!, $task: tasks_set_input!) {
update_tasks(where: { id: { _eq: $taskId } }, _set: $task) {
returning {
id