title: Migrate Data from MongoDB to Postgres
body: <p>We have database in mongo for a long time and now we have decided to move to Postgres. Since these two are totally different we have started with table design and API migration first. Now it comes to the data part.</p>
  <p>In mongo, we have the following schemas and we wanted to migrate the same data to Postgres. I have gone through a couple of articles that say you can export data from mongo in CSV and import in Postgres using COPY command or using pgAdmin.</p>
  <p>Mongos used uuid which is basically a string but in postgres we have id as an integer. we have used crossed ref foreign key in mongo as well how we can migrate those without lossing the connection between tabeles ?</p>
  <p>can anyone suggest any good method ?</p>