{"name":"test","tag":[{"tname":"a","ttype":"atype"},{"tname":"b","ttype":"btype"}]}
If you want to insert data similar to the above into mongo (there is an embedded list in the data) and operate directly in Mongo’s shell, how should you write it?
All right, ask yourself and answer it
db.test.insert({ "name":"test", "tag":[ {"tname":"a","ttype":"atype"},{"tname":"b","ttype":"btype"} ] });