How to update multiple rows at a time in hasura cloud #9444
Unanswered
Tejesh-Duvvuru
asked this question in
Question
Replies: 1 comment 1 reply
-
Hey @Tejesh-Duvvuru Have you verified the fields which are required for You can check these types by clicking on "Docs" button present in API explorer (on the extreme right side). Then click on |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing mutation but it throwing error is
![image](https://user-images.githubusercontent.com/101654993/219625747-27dc139b-485f-49a2-8bac-ea3f69d318ac.png)
mutation userFcmTokenTable($objects: [customprograms_set_input!]!) {
update_customprograms_many(updates: {where: {id: {_in: ["124567", "124568"]}}, _set: $objects}) {
affected_rows
returning {
id
emailId
}
}
}
passing variables like this
{
"objects": [
{
"id": "124567",
"name": "Program 1",
"duration_in_min": 60,
"metadata": {
"key1": "value1",
"key2": "value2"
}
},
{
"id": "124568",
"name": "Program 2",
"duration_in_min": 90,
"metadata": {
"key3": "value3",
"key4": "value4"
}
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions