Can't use variables as key, value for mongoose .find()

后端 未结 0 1541
南笙
南笙 2020-12-06 10:12

I\'m using mongoose 5.11.4 and trying to find documents. On the official docs they say

MyModel.find({ name: /john/i })

I wanna know how to use variables for &q

相关标签:
回答
  • 消灭零回复
提交回复
热议问题