graphql-engine/server/test/testcases/update_mutation/person_delete_elem.yaml

20 lines
370 B
YAML

description: Updated person data using _delete_elem operator
url: /v1alpha1/graphql
status: 200
query:
query: |
mutation update_person($value: jsonb) {
update_person(
where: {id: {_eq: 2}},
_delete_elem: {
details: 0
}
){
affected_rows
returning{
id
details
}
}
}