Closed Xetera closed 4 years ago
related #4633
@Xetera This issue is a dupe of #4633
Basically, this issue is caused due to a bug in postgres. More details in my comment here
Speaking specifically to the issue's title, yes, hasura sets the default
value which should ideally work even for generated column.
I've had a look at #3681 and #3572 and it looks like the merged PR for that did fix regular inserts for tables with generated columns but it doesn't seem like this affected a specific case of nested upserts. I've included a repo with a reproducible behavior that shows this if needed. The query I'm using to trigger this is this: (sorry for the strange kpop examples)
When calling it with input like
All is well and hasura responds as expected, however when the
"members": { data: [] }
block is changed toOr when the nested upsert input is above the length of 1 the response becomes
Postgres version
:12
Hasura version
:1.2.0-beta.2.cli-migrations