1. 首页
  2. 数据库
  3. 其它
  4. mongo start:简单的包装器以获取mongojs集合 源码

mongo start:简单的包装器以获取mongojs集合 源码

上传者: 2021-02-23 18:51:41上传 ZIP文件 2.77KB 热度 7次
Mongo-Start 一个简单的mongojs包装器可以返回一个集合,因此您无需一遍又一遍地写同样的东西。 要配置连接,您可以创建一个名为“ mongo-connection”的环境变量。 但是,由于mongo-start使用您可以将设置存储在qconf允许您使用的任何位置。 const users = require ( 'mongo-start' ) ( 'users' ) ; //mongojs collection users . find ( { ... } , ( err , collection ) => { //do stuff } ) ; const db =
下载地址
用户评论