You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to execute UPSERT on a table, where the unique index is a composite index - composed of multiple columns (node_id and name in my case). Unfortunately, it seems that the upsert method doesn't allow passing multiple expressions/columns as an onConflictOf argument.
A possible solution would be to allow passing an array instead of just a single expression, e.g.:
Build Information
Issue
I'm trying to execute UPSERT on a table, where the unique index is a composite index - composed of multiple columns (
node_id
andname
in my case). Unfortunately, it seems that theupsert
method doesn't allow passing multiple expressions/columns as anonConflictOf
argument.A possible solution would be to allow passing an array instead of just a single expression, e.g.:
which would produce a valid UPSERT expression:
UPDATE:
As a workaround, I ended up with this:
The text was updated successfully, but these errors were encountered: