-2
我在使用MongoDB和Meteor(使用Webstorm 10)时遇到了问题。如何在使用流星时将数据插入到MongoDB中
你知道一个很好的方式来执行“种子”迁移吗?
我听说过Mongo Plugin,但该插件的互联网文档很差,而且我无法理解如何使用MongoExplorer。
有什么建议吗?
我在使用MongoDB和Meteor(使用Webstorm 10)时遇到了问题。如何在使用流星时将数据插入到MongoDB中
你知道一个很好的方式来执行“种子”迁移吗?
我听说过Mongo Plugin,但该插件的互联网文档很差,而且我无法理解如何使用MongoExplorer。
有什么建议吗?
当应用程序启动时插入一些数据非常简单:Insert data in collection at Meteor's startup或http://eureka.ykyuen.info/2015/02/19/meteor-insert-sample-data-if-the-mongodb-is-empty/。
如果要编辑从版本X到版本Y的架构,可以查看此现有Meteor项目:https://github.com/wekan/wekan/blob/devel/server/migrations.js。
如果你找真棒模式,使迁移(种子,回滚,等...),这是一个真棒(但在PHP):http://laravel.com/docs/5.1/migrations