Created
March 26, 2022 18:38
-
-
Save rririanto/7bda53feb1562ca5a2d2088793d3ef31 to your computer and use it in GitHub Desktop.
Mongoimport with clean _id
This file contains 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
mongoimport --collection users --file users.json --jsonArray --uri $MONGO_URI_NEW | |
mongoimport --collection products --file products.json --jsonArray --uri $MONGO_URI_NEW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment