-1
{ 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] } ] }
如何在mongoose中聲明模式以便我可以保存爲mongodb?類型:正常對象值的字符串,但它是一個對象數組呢?Moongse schema with array
不起作用... –