mongoose多條件模糊查詢使用

多條件模糊查詢 查詢條件: 須要在Hosts文檔中同時模糊查詢字段hostIp與字段localIp而且組合條件查詢出categoryTag字段與hostType字段,categoryTag字段與hostType字段查詢未非模糊查詢(上圖狀態條件先不做爲條件查詢)html const where = { $or:[{ hostIp: new RegExp(47) }, { localIp:
相關文章
相關標籤/搜索