3 ms·
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 thin
by bmelton 15y ago
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.
- Animus7 15y ago> 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.
- coenhyde 15y agoNo. Data is stored in BSON, transfered in BSON but when in javascript it's JSON.