mongo基本操作

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

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

 

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

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

posted @ 2020-09-06 21:17  tour8  阅读(130)  评论(0编辑  收藏  举报