m seeds:M seeds是一个npm模块用于使用Mongoose和Faker上下文数据生成工具为MongoDB数据库播种集合 源码
种子 M-seeds是一个npm模块,用于使用和上下文数据生成工具为MongoDB数据库收集种子。 M种子采用定义的模式,并根据模型模式定义文件中指示的伪造工具的功能生成正确的伪数据,如下所示。 要安装,您可以使用npm或yarn npm install m-seeds or yarn add m-seeds 如何使用它 M种子仅影响应用于它的模式模型。 在架构内部, fake属性指示m种子如何生成适当的伪数据。 有关所有方法的列表,请参见 。 var mongoose = require ( "mongoose" ) ; const Schema = mongoose . Schema
下载地址
用户评论