graphql-engine/server/tests-py/queries/graphql_mutation/enums/update_enum_field.yaml
Alexis King ed26da59a6 Add support for GraphQL enum types via enum table references
These changes also add a new type, PGColumnType, between PGColInfo and
PGScalarType, and they process PGRawColumnType values into PGColumnType
values during schema cache generation.
2019-08-26 00:54:56 -05:00

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
}
}
}