mongo查询specialOperations不为空值和specialEquipment不为空值
可以使用$ne运算符来查询特定字段不为空的文档。示例代码如下:
db.collection.find({
specialOperations: { $ne: null },
specialEquipment: { $ne: null }
})
这将返回两个字段都不为空的文档。
原文地址: https://www.cveoy.top/t/topic/fJT1 著作权归作者所有。请勿转载和采集!