I have a mongoose schema with a boolean field which I want to have a default value of false. My first guess how to do that was like that:
active: { type: Boolean, default: false }
But for some reason mongoose is always setting the field to true.
What can I do to change that?