Skip to content
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

Positional Array Updaters Not Supported ($, $[]) #70

Open
bakedziti88 opened this issue Oct 20, 2021 · 1 comment
Open

Positional Array Updaters Not Supported ($, $[]) #70

bakedziti88 opened this issue Oct 20, 2021 · 1 comment

Comments

@bakedziti88
Copy link

When picking out fields for the original object vs updated object, two issues arise when a '$' or '$[]' is present in the update query:

  1. The pick function from lodash doesn't support picking with those updaters, so the original object (dbObject) doesn't find the field leaving the object missing that field.
  2. The updated object (updatedObject) assumes that the key name is '$', and you cannot use '$' as a field name for the log object.
@denes16
Copy link

denes16 commented Nov 15, 2022

Same for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants