How to find query in mongoose with $and and $or condition?

后端 未结 0 1214
说谎
说谎 2020-12-01 13:47

Script:

const query = req.body.data;
    if(query!==\'\'){
        await User.find(
            { $or:[
               {username: { "$re         


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