blazer icon indicating copy to clipboard operation
blazer copied to clipboard

deprecated 'db.eval' since 4.2 version of MongoDB

Open ilukashin opened this issue 4 years ago • 1 comments

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) Снимок экрана 2021-02-27 в 14 50 59 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.

ilukashin avatar Feb 27 '21 12:02 ilukashin

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.

ankane avatar May 06 '21 02:05 ankane