graphql-engine/server/tests-py/queries/graphql_mutation/enums/insert_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

25 lines
514 B
YAML

description: Test inserting a record that references an enum table
url: /v1/graphql
status: 200
response:
data:
insert_users:
returning:
- name: Matthew
favorite_color: yellow
- name: Robby
favorite_color: purple
query:
query: |
mutation {
insert_users(objects: [
{ name: "Matthew", favorite_color: yellow },
{ name: "Robby", favorite_color: purple }
]) {
returning {
name
favorite_color
}
}
}