mongoose class::collision:一组装饰器可在Typescript中将Mongoose与ES6类一起使用 源码
猫鼬类 安装 npm install mongoose-class --save npm install @types/mongoose @types/mongodb --save-dev 建立模型 ./models/User.ts /** * User model * @module User */ import { Model as MongooseModel } from 'mongoose'; import { Model, Column } from '../lib/mongoose-class'; @Model({ indexes: [ { name: 1, age:
文件列表
mongoose-class-master.zip
(预估有个18文件)
mongoose-class-master
index.js
94B
package.json
1KB
LICENSE
1KB
src
examples
User.ts
659B
connectMongoose.ts
509B
example.ts
685B
lib
暂无评论