Closed Akimotorakiyu closed 5 years ago
npm test
mongodb 4.0.4 node 10.13.0
from :"must pass name of collection to create" to: "collection name has invalid type null"
神奇!mongo 4.04新版本的报错消息和以前的不一样!!!
有办法可以拿到mongo的版本吗?以便做判断是用断言。
不如就判断 Error 好了,可以不用检查错误说明。
Checklist
npm test
passesAffected core subsystem(s)
mongodb 4.0.4 node 10.13.0
from :"must pass name of collection to create" to: "collection name has invalid type null"
Description of change
from :"must pass name of collection to create" to: "collection name has invalid type null"