mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 04:24:35 +03:00
27 lines
609 B
YAML
27 lines
609 B
YAML
description: Bulk query with mixed transaction access mode
|
|
url: /v1/query
|
|
status: 400
|
|
response:
|
|
path: $
|
|
error: "incompatible access mode requirements in bulk query: $.args[1] requires READ WRITE, $.args[2] requires READ ONLY"
|
|
code: bad-request
|
|
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"
|
|
read_only: true
|