title: Mongoose Schema vs Mongo Validator
body: <p>Mongo 3.2 have document validation, can we use the same to define a schema instead of using mongoose to do so.? For example : </p>
  
  <p><strong>Mongoose</strong></p>
  
  <pre><code>userschema = mongoose.Schema({
     org: String,
     username: String,
     fullname: String, 
     password: String,
     email: String
  });
  </code></pre>
  
  <p><strong>MongoDB</strong></p>
  
  <pre><code>db.createCollection(
     "example",{
       validator:{
         $and:[
           { "org":{$type:"string"}},
           { "username":{$type:"string"}},
           { "fullname":{$type:"double"}},
           {"password":$type:"string"}},
           {"email":{$type:"string"}}
         ]
       }, 
       validationLevel:"strict",
       validationAction:"error"
   })
  </code></pre>
  
  <p>What ar ethe difference between these tow and can we provide an optional field using validator as in schema ?</p>