mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
f72d8de87a
* fix insert fails for non-admin roles on v1/query, fix #327 * add test case for user role upsert usint constraint name
20 lines
359 B
YAML
20 lines
359 B
YAML
description: Upsert on test_table as user role with constraint on columns (error)
|
|
url: /v1/query
|
|
headers:
|
|
X-Hasura-Role: user
|
|
X-Hasura-User-Id: '1'
|
|
status: 400
|
|
query:
|
|
type: insert
|
|
args:
|
|
table: test_table
|
|
objects:
|
|
- id: 1
|
|
name: monika
|
|
age: 25
|
|
on_conflict:
|
|
constraint_on:
|
|
- id
|
|
action: ignore
|
|
|