我正在测试 mongo shell 上的下一个 2 查询,它可以工作,
但是现在,我需要在 reactivemongo 中执行相同的查询
有人可以给我一个关于如何在reactivemongo中进行查询的建议
doc = db.offer.find({"_id": "5704441ea356f55ab590e8f4"})
db.student.update(
{ "_id" : "570681b30fc032dea831c132"},
{ $push: {
"presell": [
{ "_id" : doc }
]
}
}
)
有没有更好的方法来运行这个查询?