mogoose的bug之不能根据类型为number的字段查找数据

Users.find({paw:6868}).exec() //返回的结果为空

Users.find({paw:"6868"}).exec() //返回的结果也为空

Users.find({paw:'111'}).exec() // 成功返回数据

Users.find({paw:111}).exec() // 成功返回数据

原文地址:https://www.cnblogs.com/toward-the-sun/p/6371005.html