I got a fresh instance of MongoDB with better specs than what I currently use. Provide a working example of transporting data from one uri to another with specified database and collection name using global variables containing env credentials each at the top using
replace_one()
object sorted by its native ID assignment "_id" in Python 3.9.