mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-23 23:43:44 +03:00
22 lines
434 B
YAML
22 lines
434 B
YAML
|
description: Test updating a record that references an enum table
|
||
|
url: /v1/graphql
|
||
|
status: 200
|
||
|
response:
|
||
|
data:
|
||
|
update_users:
|
||
|
affected_rows: 1
|
||
|
returning:
|
||
|
- name: Alyssa
|
||
|
favorite_color: blue
|
||
|
query:
|
||
|
query: |
|
||
|
mutation {
|
||
|
update_users(where: {id: {_eq: 1}}, _set: {favorite_color: blue}) {
|
||
|
affected_rows
|
||
|
returning {
|
||
|
name
|
||
|
favorite_color
|
||
|
}
|
||
|
}
|
||
|
}
|