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.
标题解释了大部分内容。我试图从 {"name": "Steve"} 例如的集合中删除所有对象,但我在文档中找不到任何关于如何在没有两个单独的 http 请求的情况下实现这一点的内容。
我正在使用带有请求库的 NodeJS。我所能找到的一个可行选项就是找到 ID 并使用它删除对象。
谢谢你的帮助!
您可以使用批量删除请求:
删除 /db/coll/*?filter={"name":"Steve"}
批量请求具有带有通配符文档 ID 的 URI,并包括 DELETE 和 PATCH 动词。
更多信息请访问https://softinstigate.atlassian.net/wiki/x/JQBGAQ