Comment

Comment by BossingAround

A silly, genuine question: when I'm writing a NodeJS app, and I need to store a JSON in a DB that looks like this:

{ "a" : "b", "c" : { "ca":"cb", "cd":"ce" }, "d": { ... } }

How do I store it? To me, NoSQL seemed like the choice in the past.

This is not difficult in relational DBs, but it requires rather long SQL commands, and SQL table design. It seems to me that "MongoDB.insert(obj)" seems like the way to go, as it is much simpler.

How do experienced Node devs solve this issue? Is it simply relational all the way? Is it Postgress's JSON field..?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton