1.查询时间范围,且模糊匹配message列中含“api”字符串的记录
db.collection_fee.find(
{
'time':{$gte:ISODate("2023-01-05T09:58:51.122Z"),$lte:ISODate("2023-01-05T13:58:51.122Z")},
'message':/api/
},
)
.projection({})
.sort({time:-1})
.limit(100)
标签:01,58,MongoDB,查找,api,2023,message,51.122,范围 From: https://www.cnblogs.com/zjfblog/p/17026857.html