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

24 lines
441 B
YAML

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