Hey guys, are there any docs on inserting and updating many-to-many relationships?
g
garyaustin
02/08/2022, 2:47 PM
Although the api supports joins when selecting from the database, for writing multiple tables it is best done by an rpc call to a postgres function. The function then carries out the various insert/updates.
The rpc function also is wrapped in a transaction so if any operation fails they all fail and are backed off as long as they issue an exception.
m
Morza (Chris)
02/08/2022, 3:42 PM
@User - thank you for your reply. Do you have any docs that you can recommend on this?