{"name":"test","tag":[{"tname":"a","ttype":"atype"},{"tname":"b","ttype":"btype"}]}
想往mongod里插入类似于上面的数据(数据中有一个内嵌的列表),直接在mongo的shell里进行操作,应该怎么写呢?
Baiklah, tanya dan jawab soalan anda sendiri
db.test.insert({ "name":"test", "tag":[ {"tname":"a","ttype":"atype"},{"tname":"b","ttype":"btype"} ] });
Baiklah, tanya dan jawab soalan anda sendiri