deprecated 'db.eval' since 4.2 version of MongoDB
Hello there!
Im trying to visualize my data from MongoDB v.4.4.2 and found a simple problem:
no such command: '$eval' (59) (on localhost:27017)
According this link it was removed.
IMPORTANT Starting in version 4.2, MongoDB removes the eval command. The deprecated db.eval(), which wraps the eval command, can only be run against MongoDB 4.0 or earlier versions. For behavior and example, refer to the 4.0 or earlier version of the manual.
I didn't found any solution for this, but still looking. Maybe this answer can be helpful.
Looks like you need to update your docs in MongoDB section about its version prerequisites.
Hey @ilukashin, thanks for reporting! I have an approach that should work without eval, but need to spend a bit more time on it. In the meantime, added a note to the readme.