[Solved] Error: no globalScriptEngine in $where parsing

##############

Use mongodb aggregate query, use javascript expression in $where condition, execution report error:

no globalScriptEngine in $where parsing
It can be solved by modifying the javascriptEnabled in the mongodb configuration file to true:

security:
  javascriptEnabled: true

###############

##########

Similar Posts: