graphql-engine/server/test/testcases/upsert_role_user_error.yaml
Rakesh Emmadi f72d8de87a fix insert fails for non-admin roles on v1/query (fix #327) (#328)
* fix insert fails for non-admin roles on v1/query, fix #327

* add test case for user role upsert usint constraint name
2018-08-29 19:11:33 +05:30

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