-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/serverRelated to serverRelated to serverk/bugSomething isn't workingSomething isn't workings/wipStatus: This issue is a work in progressStatus: This issue is a work in progress
Description
- Create a table
usertable with typesid, nameand primary key:id, - Create a permission for the user allowing any insert and allowing upserts too
This query is valid per GraphiQL:
X-Hasura-Role: user
X-Hasura-Role: 1
mutation {
insert_user(
objects:[{name:"test"}],
on_conflict: {
constraint: user_pkey
action: update
}
) {
affected_rows
}
}
But returns this error from postgres:
{
"errors": [
{
"path": "$",
"error": "constraint \"user_pkey\" for table \"user__insert__public__user\" does not exist",
"code": "postgres-error"
}
]
}
Metadata
Metadata
Labels
c/serverRelated to serverRelated to serverk/bugSomething isn't workingSomething isn't workings/wipStatus: This issue is a work in progressStatus: This issue is a work in progress