Created
June 7, 2019 07:43
-
-
Save philsch/0d35144d0ce2db7c46791d9804edd3d6 to your computer and use it in GitHub Desktop.
Blogpost: Easy integration testing of GraphQL with Jest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment