graphql-engine/server/test/testcases/upsert_role_user.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

18 lines
320 B
YAML

description: upsert into test_table with user role
url: v1/query
headers:
X-Hasura-Role: user
X-Hasura-User-Id: '1'
status: 200
query:
type: insert
args:
table: test_table
objects:
- id: 1
name: monika
age: 25
on_conflict:
constraint: test_table_pkey
action: update