如何从mongo获取不区分大小写的数据:
searchRequest
{ asset: '121',
certificateNumber: '',
currentDate: '',
customerPO: '213',
Area: 'usa',
serial: ''
}
如果我在美国或美国进入区域,请获取记录
搜索代码
certificate.find(data).then(function(result) {
if (!_.isEmpty(result)) {
successData(RESPONSE.sendResponse(true, true, result, MESSAGE.SUCCESS, STATUS_CODE.OK));
} else {
successData(RESPONSE.sendResponse(true, false, null, MESSAGE.DATA_NOT_AVAILABLE, STATUS_CODE.OK));
}
})