objection-rest icon indicating copy to clipboard operation
objection-rest copied to clipboard

transactional batch processing

Open kapouer opened this issue 9 years ago • 0 comments

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.

kapouer avatar May 05 '16 11:05 kapouer