So I have a pretty decent amount of data in production, rather than continue with my made up data I want to import the prod data into my dev environment so I can really test out new features.
I’ve pulled a
mongodump from the server and have all the data on my dev machine.
However when I do a
mongorestore on my development machine it rebuilds the database via
inserts - and as such it doesn’t retain the correct
_id fields. The result is that all the documents have the right data but get new
_ids… so all of my references are broken.
Question: Is there a better way to do this, or am I doing it incorrectly?