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

Multi update error #116

Open
arkabase opened this issue Jul 26, 2021 · 0 comments
Open

Multi update error #116

arkabase opened this issue Jul 26, 2021 · 0 comments

Comments

@arkabase
Copy link

In /lib/index.js line 163 :

const entry = _.omit(data, '_id');

the _.omit method only works on single object, so when trying to update multiple entries with null id and an array of objects, the omit don't work and the _id is not removed from entries, generating Error: You cannot change a document's _id !

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

1 participant