It's possible but it's not going to be instantaneous. Mongo is a document database while Postgres is a more traditional relational database. However, Postgres does offer a JSON datatype with an extensive feature set built around it which can help ease the transition.

My main open source project is a data access toolkit for Node+Postgres which has some Mongo-ish aspects to it. In particular, it lets you work with "document tables" which are very like collections in Mongo. You'll eventually want to settle on and enforce a proper schema, but that will at least get you over the big jump.

Classic DEV Post from Sep 20 '18

Explain JavaScript Promises like I am five.

I am starting to hate JavaScript. Before I blow my head with a gun, someone, pl...


A blogging community of over 100,000 software developers Join dev.to