I have a model of an airport in mysql and I plan to upload it to the mongodb via links between collections. In the following images are examples of documents from my collections. (airplane, airport and flight)
The id in the flight is the id_voo, in the airplane is the tailnum and in the airport it is idAirport. In mysql the relations are from 1: M from airplane to flight and from 1: M from flight to airport. I have exported this data with the foreign keys and I want to reference it between documents in mongodb. The mongo db immediately assigned an objectid as main and that was not what he intended. How can I set this?