DEV Community

[Comment from a deleted post]
Collapse
 
dmfay profile image
Dian Fay

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.