Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In addition to the other answers you've gotten (which are right), I think the real answer is JSON. I mean, JSON stands for "JavaScript Object Notation" (I think), but it means that your query results are effectively mapped to objects immediately.

Mongo especially returns JSON as its results, so it's usually the first choice for JS-based frameworks, for better or worse.



> Mongo especially returns JSON as its results, so it's usually the first choice for JS-based frameworks, for better or worse.

Nitpicky, but it actually returns BSON, which is based on JSON but has more data types.


No. Data is stored in BSON, transfered in BSON but when in javascript it's JSON.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: