MongoDB + Python: How to delete multiple documents from mongodb and return deleted documents

后端 未结 0 1511
逝去的感伤
逝去的感伤 2021-02-12 10:57

I\'m using the below code to delete one documents and return deleted document:

book.collection.find_and_modify({"author_id": {"$nin": omit}},          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题