-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Description
Hello,
If I have an array of nested documents in my model, how would you go about implementing the controller and its validation? And how would you pass the data to Postman?
Here is what my model looks like:
const LeadSchema = new mongoose.Schema(
{
name: {
type: String,
required: true
},
.
.
.
contacts: [
{
firstName: {
type: String,
},
lastName: {
type: String,
},
title: {
type: String,
}
}
}
]
.
.
.
Thank you very much!
Metadata
Metadata
Assignees
Labels
No labels