Bulk operations update/delete wrong documents #2412
Replies: 2 comments 2 replies
-
I agree with your expectation, though I'm going to convert this to a discussion and treat it as a new feature request instead of a bug. The thinking here is that we need to add validation to all requests with a Thanks for reporting @teunmooij! I will take care of this. |
Beta Was this translation helpful? Give feedback.
-
Hi @DanRibbens, thanks for the quick reply. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to reproduction
https://github.com/teunmooij/payload
To Reproduce
Link is for my test app in my own repo, but it's basically the payload demo project, updated to latest payload version (v1.6.26).
npm run testbed
)where
parameter, like:Describe the Bug
Expected:
When I give an invalid where clause in the bulk patch or delete, I'd expect a 400 status and no updates
Actual
All the documents in the given collection are deleted (or updated)
Payload Version
1.6.26
Beta Was this translation helpful? Give feedback.
All reactions