Skip to content

Instantly share code, notes, and snippets.

@rririanto
Created March 26, 2022 18:38
Show Gist options
  • Save rririanto/7bda53feb1562ca5a2d2088793d3ef31 to your computer and use it in GitHub Desktop.
Save rririanto/7bda53feb1562ca5a2d2088793d3ef31 to your computer and use it in GitHub Desktop.
Mongoimport with clean _id
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