mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
ed26da59a6
These changes also add a new type, PGColumnType, between PGColInfo and PGScalarType, and they process PGRawColumnType values into PGColumnType values during schema cache generation.
25 lines
514 B
YAML
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
|
|
}
|
|
}
|
|
}
|