1
0
mirror of https://github.com/hasura/graphql-engine.git synced 2024-12-24 16:03:37 +03:00
graphql-engine/server/tests-py/queries/v1/bulk/basic.yaml

25 lines
485 B
YAML

description: Bulk query
url: /v1/query
status: 200
response:
- affected_rows: 2
- result_type: TuplesOk
result:
- ['id', 'name', 'is_registered']
- ['1', 'author1', 't']
- ['2', 'author2', 'f']
query:
type: bulk
args:
- type: insert
args:
table: author
objects:
- name: "author1"
is_registered: true
- name: "author2"
is_registered: false
- type: run_sql
args:
sql: "select * from author"