How to run JavaScript store function from Laravel. I am using MongoDB 4.4v
db.eval()¶
Deprecated since version 3.0. 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.