Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It cannot be disabled, it is a unique id for each object. But you can override it by specifying your own value in the model. The only question is which one do you need! Well, there is and there is, what prevents it
new mongoose.Schema({...}, {_id: false})
I've done it this way and it works. Naturally on newly added documents.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question