Just making sure, I am creating an API function with
@frappe.whitelist() decorator and within that function there are several database related APIs called (ex: document.save, frappe.new_doc).
If between those API calls, I throw an error via
frappe.throw, does previous calls become reverted back. If that so, on the last part of that function should I place a