Does throwing a regular javascript error inside a transaction, roll back automatically?
Curious if I need to actually call tx.rollback()? Or if we reach a regular error, or lets say a Postgres error occurs at some step, will everything be automatically rolled back?
Or do we have to always try catch and rollback in the catch/finally block?
1 Reply
Throwing in a transaction will rollback
See related discussion in #general https://discordapp.com/channels/1043890932593987624/1043890932593987627/1141774435142078595