mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
24 lines
441 B
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
|
|
}
|
|
}
|
|
}
|