SHARE
TWEET

Untitled

a guest Nov 20th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const interestSchema = mongoose.Schema({
  2.   label: {
  3.     type: String,
  4.     required: true
  5.   }
  6. }, {
  7.   _id: false
  8. })
  9.  
  10. const userSchema = mongoose.Schema({
  11.   interests: [interestSchema]
  12. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top