Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const interestSchema = mongoose.Schema({
- label: {
- type: String,
- required: true
- }
- }, {
- _id: false
- })
- const userSchema = mongoose.Schema({
- interests: [interestSchema]
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement