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

20 lines
376 B
YAML

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