Mongoose behaviour around Min and Max with Number
<p>I have a Mongoose scheme like so...</p>

<p><code>lightbox_opacity:{type:Number, min:0, max:1}</code></p>

<p>I have 2 issues...</p>

<ol>
<li><p>When I try to insert a string "abc", it quietly ignores this fields insertion. Rest of the fields in the Schema get inserted successfully. I was under the impression that it will throw an exception. Is it possible to do that?</p></li>
<li><p>If I try to insert 5, it simply allows it and it appears that min &amp; max didn't come into play at all. </p></li>
</ol>

<p>What am I missing?</p>