node-mongo-seeds icon indicating copy to clipboard operation
node-mongo-seeds copied to clipboard

A tool to quickly populate your mongo db from a set of .json files

Results 4 node-mongo-seeds issues
Sort by recently updated
recently updated
newest added

Would it be possible to support unique indexes for a given model? I was struggling with some unit tests and noticed that the created collection had a lack of the...

**What does this PR do?** - update mongo connect with options in lib/seed.js - update mongodb version

Can I create a condition to only allow to populate when the collection is empty?

For example we have 2 collections` medias and campaigns. In CampaignSchema we have medias field` medias: [{ type: ObjectId, ref: 'Media' }], For population medias in campaigns, we need in...