mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
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
|
||
|
}
|
||
|
}
|
||
|
}
|