我知道我们只能更新1级。但有人可以告诉我,一级下来意味着我只能更新_id,名称,用户,列表?或列表/卡???
我知道我可以使用像list.1.list这样的点表示法,但是我可以使用变量req.body.number来制作点表示法吗?例如lists.reqbody.number.lists?我试过没办法,也许我做错了什么。有人能帮助我吗?
{
"_id" : ObjectId("59e096a7622a3825ac24f343"),
"name" : "1",
"users" : [
ObjectId("59cd114cea98d9326ca1c421")
],
"lists" : [
{
"list" : "1",
"cards" : [
{
"name" : "2",
"Author" : [
"59df60fb6fad6224f4f9f22d",
"59df60fb6fad6224f4f9f22d",
"59df60fb6fad6224f4f9f22e"
]
},
{
"name" : "3",
"Author" : []
}
]
},
{
"list" : "fea",
"cards" : [
{
"name" : "card",
"Author" : []
}
]
}
],
"__v" : 0 }