-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
It was connecting the comment section to post. It was really confusing and which takes us more time to figure out and it feels good when it work.
const CommentSchema = new mongoose.Schema({
id: {
type: Number
},
comment: {
type: String,
required : true,
max: 300
},
post:{
type: mongoose.Schema.Types.ObjectId,
ref: 'Post',
required: true
}
}, {timestamps: true})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels