Mongoose.js: Save with a empty ObjectId
javascript, mongoose, node.js
Solution
If you made the owner a required field then you must set a value, otherwise you may leave it null/undefined when saving.
Problem
How can I save with a empty ObjectId. I wanna create a item, thats not attach to any user yet. So the owner has to be a empty ObjectId. How to do this?