graphql-engine/server/tests-py/queries/v1/bulk/basic.yaml
2019-11-14 18:20:18 -06:00

30 lines
578 B
YAML

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