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

 

使用mongodb聚合查询,在$where条件中使用了javascript表达式,执行报错误:

no globalScriptEngine in $where parsing
可通过修改mongodb配置文件中的javascriptEnabled为true解决:

security:
  javascriptEnabled: true

 

 

 

 

 

 

 

 

 

 

 

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

Error: no globalScriptEngine in $where parsing

 

##########

相关文章:

  • 2021-10-20
  • 2021-11-24
  • 2021-08-18
  • 2022-12-23
  • 2021-08-10
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
  • 2022-02-05
相关资源
相似解决方案