title: mongoose set default model / schema value as null
body: <p>How to set a schema's key / value to <code>null</code>?</p>
  
  <pre><code>var TheModelSchema = new Schema({
    someNullKey: null, // is this possible?
    someDate: Date,
    someString: String,
  })
  </code></pre>
  
  <p>Docs looked at:</p>
  
  <ul>
  <li><a href="http://mongoosejs.com/docs/schematypes.html" rel="nofollow noreferrer">http://mongoosejs.com/docs/schematypes.html</a></li>
  </ul>
  
  <p>Other questions looked at:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/29188131/mongoose-set-default-as-empty-object">Mongoose set default as empty object</a></li>
  <li><a href="https://stackoverflow.com/questions/13542065/is-better-use-an-empty-value-as-a-or-as-null">Is better use an empty value as a &#39;&#39; or as NULL?</a></li>
  <li><a href="https://stackoverflow.com/questions/18859284/mongoose-custom-schema-types">mongoose custom schema types</a></li>
  <li><a href="https://stackoverflow.com/questions/18606323/mongodb-empty-string-value-vs-null-value">MongoDB empty string value vs null value</a></li>
  <li><a href="https://stackoverflow.com/questions/29188131/mongoose-set-default-as-empty-object">Mongoose set default as empty object</a></li>
  <li><a href="https://stackoverflow.com/questions/31092479/mongoose-schema-embedded-document-default">Mongoose Schema Embedded Document Default</a></li>
  </ul>