删除与过滤器匹配的所有行
Delete all the row that matches a filter
如何删除与特定过滤器匹配的所有行?
类似于
DELETE /items?filter={"where":{"color":"blue"}}
您可以参考环回文档 delete persisted model and filter
在您的节点代码中
Books.destroyAll({"or":[{"id":1},{"id":2}]}, callback)
在您的 REST 中 API
http://localhost:3000/api/Books?filter={"where":{"or":[{"id":1},{"id":2}]}}
如果您使用不适合您的代码更新您的问题,我可以更新答案以解决您的问题。
如何删除与特定过滤器匹配的所有行?
类似于
DELETE /items?filter={"where":{"color":"blue"}}
您可以参考环回文档 delete persisted model and filter
在您的节点代码中
Books.destroyAll({"or":[{"id":1},{"id":2}]}, callback)
在您的 REST 中 API
http://localhost:3000/api/Books?filter={"where":{"or":[{"id":1},{"id":2}]}}
如果您使用不适合您的代码更新您的问题,我可以更新答案以解决您的问题。