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

deprecated 'db.eval' since 4.2 version of MongoDB #324

Open
ilukashin opened this issue Feb 27, 2021 · 1 comment
Open

deprecated 'db.eval' since 4.2 version of MongoDB #324

ilukashin opened this issue Feb 27, 2021 · 1 comment

Comments

@ilukashin
Copy link

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.

ankane added a commit that referenced this issue May 6, 2021
@ankane
Copy link
Owner

ankane commented May 6, 2021

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.

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