mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 04:24:35 +03:00
25 lines
485 B
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"
|