Migrate-mongo autogenerated id-s in different environments

I use migrate-mongo to run my migrations across dev/stage/prod environments.
The issue I have is for my documents I use the autogenerated mongo id-s.
But when I run an insertion script using migrate-mongo it generates different id-s for each environments.
I want to understand what is the best practice to keep ids the same across the environments.