Use Mongoose create collection in database
var mongoose = require('mongoose');var Schema = mongoose.Schema;var models = require("./models");for(var m in models){ mongoose.model(m,new Schema(models[m]));}module.exports = { getM
原创
2016-11-21 11:07:16 ·
376 阅读 ·
0 评论