-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Deeply nested keys are not passed correctly to afterSave triggers #7384
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
Comments
Thanks for reporting. Can you specify what exactly that wrong object is according to your example?
|
@mtrezza The trigger gets |
Thanks for the details. I classify this as bug with severity S3, because a workaround exists. Workaround: Pass object / field via trigger context. |
The issue remains even after #7005 |
Possibly because of this bug, live queries also don't work properly, and there is no work around for that. |
New Issue Checklist
Issue Description
afterSave triggers do not receive the correct updated object, if a deeply nested key was updated.
Steps to reproduce
Actual Outcome
The afterSave triggers receives a wrong object (in request.object)
Expected Outcome
In the trigger call for the second
save()
, the fielda
of the received object should be{'b':{'c':1}}
Failing Test Case / Pull Request
Environment
Server
51e0800
any
local
Database
MongoDB
v4.4.5
local
Client
any
any
Logs
The text was updated successfully, but these errors were encountered: