Guest User

Untitled

a guest
Aug 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. Dealing with schema changes in Mongoose
  2. new Schema({
  3. name: { type: string }
  4. })
  5.  
  6. new Schema({
  7. name: { type: string },
  8. birthplace: { type: string, required: true, default: 'neverborn' }
  9. });
Add Comment
Please, Sign In to add comment