如题。 mongodb的local库存在数据日志,现在需要连接它,但local 是不能添加用户的,如果在 shell 可以在 admin库 下完成验证再切到 local 库。在应用里应该怎么写呢?
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。