1、模糊查询:req_content存储为一个字符串

db.getCollection('xxx').find({"req_content":{$regex:"\"brandId\":\"127896\""}})

 

2、列表查询:dish_ids存储为一个列表

db.getCollection('xxxx').find({"dish_ids":{$in:[346340899855897600]}})

相关文章: