Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
那么,$sort可以使用,$push但是有没有办法使它可以使用,.update()以便在必要时可以对数组进行重新排序?
$sort
$push
.update()
您能否看看这些文档,如果这能回答您的问题,请告诉我: http ://docs.mongodb.org/manual/reference/operator/push/ 如果您需要其他任何内容,请告诉我。最好的,查理