I am new to MongoDB and trying to migrate data between two. So I can connect to DB A and query - but my question is how can I connect to B and copy content from A -> B ? I found this
mongoengine connection and multiple databases
but it states that models are specific to each database to use the meta
tag.
Setting up two connections and copying the same model rather than dumping A to disk and reading into B. I have no CLI access to both, so I can not pipe the file in (if that's an option at all like with SQL), hence thinking of a trigger in my FastAPI
on B to pull from A.