title: Mongoose partial validations
body: <p>I have this schema for mongoose</p>
  
  <pre><code>const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  const Person = new Schema({
  first_name: {
      type: String,
      required:true
  },
  last_name: {
      type: String,
      required:true
  },
  dob: {
      type: Date
  },
  phone: {
      type: String
  },
  email: {
      type: String,
      required:true
  },
  address: {
      type: String,
      required:true
  },
  city: {
      type: String
  },
  state: {
      type: String
  },
  zipCode: {
      type: Number
  }
  });
  module.exports = mongoose.model("Person", Person);
  </code></pre>
  
  <p>My App user needs to fill 2 forms for this information. Half information like first_name,last_name,dob,phone will be in first form. I have to save this info first and then move to second form and on second form I have email,address,city,state,zipcode.</p>
  
  <p>But when I save first form. It will give me Error because Email is required and which is on second form. </p>
  
  <p>So How can I validate some fields which are in object using mongoose? </p>
  
  <p>Or is there any other solution?</p>
  
  <p>Thanks</p>