
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
light-api-mongo
Advanced tools
修复saveFileByUploadStream方法的err未定义的问题
1.增加权限认证连接,连接配置如下
"auth":"username:password"
1. 增加文件的流处理方法;
- 从GridFS的db中获取文件的可读流
sdb.eadFileByDownloadStream(fileId)
@param {*} fileId string :文件id
@return {*} Promise Object (GridFSBucketReadStream)
- 将可读流存储到从GridFS的db中
sdb.saveFileByUploadStream(readStream,metadata,filename);
@param {*} readStream stream :可读流
@param {*} metadata Object :文件元数据
@param {*} filename string :文件名
@return {*} Promise Object (GridFSBucketWriteStream)
1. 增加自定义聚合方法
1. mongodb聚合时增加排序参数
1. mongodb聚合时增加排序参数
1. 插件支持mongodb聚合查询及聚合计数
1. 插件支持mongodb副本集连接
2. 插件增加数据库用户密码配置
//副本集合配置
"replicaSet":"light_dev",
//数据库用户密码配置
"auth":"user:password",
1. 解决插件初始是报错不支持auto_reconnect问题
1. 退回1.0.8版兼容_id历史数据会有问题
1. 修复API的_id的兼容
1. 修复mongodb初始化问题
2. 修改fileDB不识别问题
1. 修复otherDb权限控制问题
1. 修改mongoDB原有Db连接为官方推荐的MongoClient连接
2. 新增poolSize配置
3. 新增fileDB文件数据库配置
4. 新增fileColPrefix GridFs文件存储的集合前缀配置
5.解决查询不能并发的问题
1. 修复缺陷排序后查询一定条数api排序问题,
2. 修复书写错误问题
1. 增加文件删除api
2. 增加获取文件元数据api
3. 增加分页查询api
4. 增加按照查询条件删除多个文档api
5. 增加查询文档总条数api
7. 增加排序后查询一定条数api
FAQs
this plugin of the light-api server for mongoDB service
The npm package light-api-mongo receives a total of 2 weekly downloads. As such, light-api-mongo popularity was classified as not popular.
We found that light-api-mongo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.