After a mongoose request I have my document doc
which is the result of the query
Here is the schema used
var searchSchema = new mongoose
This is do to the fact that the toString() method of the object returns the _doc property. You can use: console.log(doc._doc.image);
Try to use the bracket notation like that:
doc['image']
If it works, I'm not able to explain you why, but maybe someone could shed some light on this?
You'll see this when you haven't added the field to your schema.
Add image
to your schema and it should work:
image: String