【文件属性】:
文件名称:猫鼬种子加:猫鼬的种子数据填充
文件大小:9KB
文件格式:ZIP
更新时间:2021-02-03 13:29:14
nodejs npm mongodb mongoose seeder
猫鼬种子加
Mongoose-Seed-Plus使您可以使用Mongoose验证的所有优点来填充和清除MongoDB文档
■安装
使用NPM或纱线
$ npm install mongoose-seed-plus
■基本用法
var seeder = require ( 'mongoose-seed-plus' ) ;
var chalk = require ( 'chalk' ) ;
var path = require ( 'path' ) ;
var options = {
mongodb : {
host : "localhost" ,
port : 27017 ,
dbname : "mongoose-seed-plus-dev"
} ,
dump : {
enable : true
} ,
models : [
{ path : 'models/User.js' , name : 'User' , clear : true } ,
{ path : 'models/Product.js' , name
【文件预览】:
mongoose-seed-plus-master
----.jshintrc(2KB)
----.eslintrc.js(8KB)
----LICENSE(1KB)
----README.md(3KB)
----.editorconfig(230B)
----.gitignore(2KB)
----index.js(5KB)
----package.json(933B)