mongodb怎么查询某个db有多少个collection,并且叫什么名字,api太不友好了,总是报错,不知道怎么调用
https://github.com/moajs/get_collection_names
var get_collection_names = require('get_collection_names'); var host = "127.0.0.1"; var port = "27017"; var db = "express-g-demo"; // get_collection_names(host, port, db, function(err, names){ console.log(names); })
http://stackoverflow.com/questions/29449190/process-nexttickfunction-throw-err-undefined-is-not-a-function-mon/29461274#29461274
已解决,谢谢大家 自豪地采用 CNodeJS ionic
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
https://github.com/moajs/get_collection_names
http://stackoverflow.com/questions/29449190/process-nexttickfunction-throw-err-undefined-is-not-a-function-mon/29461274#29461274
已解决,谢谢大家 自豪地采用 CNodeJS ionic