While wappler team is working on this, current option is to use custom query can be used to write upsert queries.
Unique constraints need to be available in the native ui component to achieve this. At least from PG perspective it is required. Coz one table may have multiple unique constraints. While you’re wokring on this - just take of this please.
Also, to complement, give us an option to select which fields we want to update… For example, when inserting I have the field “created_at”, but when updating I don’t want to update this field…
Just to make this easier for the team, I have the above idea - if Value On Update field is empty, don’t update that value. So, in the above example, only “vat” column would be updated
And I guess we need a new section to see/specify the constraints like @nshkrsh said. Do you have any suggestions how to make this in the UI?