没有合适的资源?快使用搜索试试~ 我知道了~
feathers-rename-id:包以使用id代替_id
共14个文件
js:5个
yml:1个
npmignore:1个
需积分: 5 0 下载量 96 浏览量
2021-05-02
06:40:44
上传
评论
收藏 43KB ZIP 举报
温馨提示
羽毛重命名 可以将所有请求的“ _id”更改为“ id”。 配置 const mongooseService = require ( 'feathers-mongoose' ) . Service ; const Service = require ( 'feathers-rename-id' ) ( mongooseService ) ; const Post = require ( './post-model' ) ; module . exports = function ( ) { const app = this ; app . use ( '/posts' , new Service ( { Model : Post , newIdName : 'id' // Default value - 'id' } ) ) ; } ; 用法 const po
资源推荐
资源详情
资源评论
收起资源包目录
feathers-rename-id-master.zip (14个子文件)
feathers-rename-id-master
.gitignore 554B
.babelrc 28B
package.json 1KB
.npmrc 43B
src
index.js 2KB
.travis.yml 68B
LICENSE 1KB
README.md 1KB
.npmignore 609B
test
index.test.js 2KB
env
app.js 596B
index.js 148B
post-model.js 218B
yarn.lock 136KB
共 14 条
- 1
资源评论
HMI前线
- 粉丝: 21
- 资源: 4590
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功