how about making .lean() turn objectids as strings?
I often find myself making operations with arrays of ids. Some basic JS array operations don't work if the array contains ObjectIds. Also, I RARELY find myself actually making use of the properties of an ObjectId.
Not likely to be in mongoose core anytime soon, because ObjectIds aren't actually strings, they're just conveniently represented as strings. However, easy to make a plugin for this :)
challenge accepted :)
Might want to work with either https://www.npmjs.com/package/mongoose-lean or https://www.npmjs.com/package/mongoose-shortid, these may help