Node.js and Mongoose regex query on multiple fields

前端 未结 1 1444
太阳男子
太阳男子 2020-12-23 19:46

I would like to query multiple fields using the same regular expression for both. In this query, I would like to accept a single text input and check both the firstName and

相关标签:
1条回答
  • 2020-12-23 20:43

    The code above works fine for a query on multiple fields. Turns out I had some bad data.

    0 讨论(0)
提交回复
热议问题