meteor-populate:在Meteor上使用simpleSchema和Collection2填充用假数据填充的数据库

时间:2021-05-03 13:10:57
【文件属性】:
文件名称:meteor-populate:在Meteor上使用simpleSchema和Collection2填充用假数据填充的数据库
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-03 13:10:57
JavaScript 流星人口 在Meteor上使用simpleSchema和Collection2填充用假数据填充的数据库 安装 > meteor add gbit:populate 如何使用 在流星收藏中 Meteor . startup ( function ( ) { // Say how much fakes you need // Default is 3 Populate . amount = 5 ; // Insert five fakes Products . populate ( ) ; // You can pass argument with number of fakes Users . populate ( 3 ) ; // Return 3 fake users and insert in your db if is empty } ) ; 您可以在SimpleSc
【文件预览】:
meteor-populate-master
----.gitignore(4B)
----README.md(1KB)
----package.js(968B)
----tests()
--------meteor-populate-tests.js(121B)
----.versions(864B)
----lib()
--------meteor-populate.js(5KB)
--------simple-schema-extension.js(65B)

网友评论