{ artists:
{ id: '324435',
name: 'Gleen'
},
albums:
[ { album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] },
{ album: [Object], tracks: [Object] } ] }
How do I declare schema in mongoose so that I can save into mongodb? Type : string for normal object value but how about it's an array of objects?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…