Hi Elliot,
thanks for replying.
I run MongoDB on NodeJS/Express with Mongoose.
I query it using client-side Javascript using XMLHttpRequest call.
server-side code:
"Vendor.find().all(function(results){
results=JSON.stringify(results);
res.send(results);
"
all Vendor documents are found and returned to client-side
XMLHttpRequest, however, it looke like they are in BSON format -
even though I can do JSON.parse on returned data, the field names are
not registered as properties of JS object.
I feel like I've been neglecting my homework ;)
Am I doing something wrong?
Perhaps to get proper JSON I should use Map/Reduce for such
operations?
On 8 ноя, 06:50, Eliot Horowitz <
eliothorow...@gmail.com> wrote:
> I think you need to explain what your'e trying to do a bit more.
> For example, how are you querying the db?
>