这是indexloc提供的服务,不要输入任何密码
Skip to content

Unable to insert into table with identity primary key using Hasura Console #4863

@devuxer

Description

@devuxer

Possibly related to #3572.

Using v1.2.1 of console and server, if I try to insert a row into a table with an auto-incrementing primary key using Hasura Console > Data > Insert Row, I get this error:

Insert failed!
unexpected : cannot insert into column "id"

My id column is defined as integer, primary key, unique.

There doesn't seem to be a way to leave the id out of the insert, and I'm not able to select the "null" or "default" radio button. Also, if I enter an ID that's not already in the table, it still doesn't work.

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolek/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions