0
如何插入阵列和正常变量数据,以猫鼬数据库阵列插入..猫鼬分贝 - 使用创建并保存
var parent = new Parent({ children: [{ name: 'Matt' }, { name: 'Sarah' }], class: 10 })
parent.save(callback);
这是目前我知道方法。 我需要它从req.body完成。那么在创建父对象之后我该如何做。即
var parent = new Parent();
///code for inserting the array data and other normal datatypes
parent.save(callback);
thanks..it works – 2015-04-03 09:21:33