-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
destroyAll does not respect normalizeUndefinedInQuery #2364
Comments
Hi @tmikulcek |
Hi @tmikulcek |
Hi, everyone! The same problem with count and update methods. As I understand, all filter/where objects should 'removeUndefined' with 'normalizeUndefinedInQuery' parameter. And all data objects (for create, update) without it. Could you please pay attention on this bug? Because it's an enough serious problem. The requests like |
Issue is fixed. Please have a look. |
This bit us today. An undefined value got into the where clause of destroyAll and caused a delete of all items. We tried using normalizeUndefinedInQuery option as per #637 but it only works in find queries.
Sample repo: https://github.com/tmikulcek/loopback-sandbox
Run the test with mocha
The text was updated successfully, but these errors were encountered: