Sequelize Transactions in Node.js/Express REST API

Background

I have implemented a particular REST API with Spring-boot, and I am implementing same API endpoints in Node.js/Express/Sequelize. The concept of Transaction in Sequelize is pretty old-fashioned although it gives the desired granular control over transactions so control can be established.

Prerequisite

I assume that you are familiar with backend development in Express. This is an ecommerce backend and I will be implementing Create Order endpoint. A customer creates an…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ThankGod Ukachukwu

ThankGod Ukachukwu

Senior Software Engineer. Tribyl, Inc. (via Andela)