Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mySchema = new Schema({
- name: { type: String },
- note: {
- type: [{
- message: { type: String },
- user: {
- type: Schema.Types.ObjectId,
- ref: 'User'
- }
- }]
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement