mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
23 lines
541 B
YAML
23 lines
541 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, expected access mode: READ WRITE but $.args[1] forces READ ONLY"
|
|
code: bad-request
|
|
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"
|
|
read_only: true
|