objection-rest
objection-rest copied to clipboard
transactional batch processing
Hi,
here's a rough account of the idea: instead of doing client-side
PUT /api/person
PATCH /api/person
It would allow
POST [{method: PUT, body: xxx, url: vvv}, {method: PATCH, body: xxx, url: uuu}]
which would start a transaction, process each subrequest, and abort or end the transaction on failure/success of all the requests.
Maybe it's something that would better live outside objection-rest. In which case what's missing to objection-rest is a simple interface for transactions handling.