save data inside an array of model in mongoose code example
Example: js array of strings mongoose
var personSchema = new mongoose.Schema({
tags: [{
type: String
}]
var personSchema = new mongoose.Schema({
tags: [{
type: String
}]