@@ -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
|
||||
|
||||
Reference in New Issue
Block a user