Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Truncate data in ShopItems collection
- mongo shop --host localhost:27017 --username xxx --password xxx --authenticationDatabase admin \
- --eval 'db.getCollection("ShopItems").remove({})'
- # Import seed data into ShopItems collection
- mongoimport --host localhost:27017 --username xxx --password xxx --authenticationDatabase admin \
- --db shop --collection ShopItems --type JSON --file ShopItems.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement