The Adaptable Backend: Node.js REST API with PostgreSQL & MongoDB persistence transactions

By Hendrix Roa
July 21, 2025
1 min read
Posted in The Adaptable Backend: Node.js
The Adaptable Backend: Node.js REST API with PostgreSQL & MongoDB persistence transactions

In the previous article setup a lot of things, but what happens if we need to modify several objects or entities? our design has shared between multiple entities so each one will have they own responsability, we created the CRUD notes for sql and Nosql approach.

Intro to transactions

How apply transactions here

Creatign the User entity

Relation between user and note in SQL

explanations

Relation between user and note in Nosql

explanations

Unit of work patterns

Implementing Unit of work on SQL

Implementing Unit of work on Nosql

Comments

Loading comments...

You Might Also Like