The first step was simply importing the data models that I defined in another directory. This includes both the journey and the weather model as they both have different structures. I then import ObjectID from the MongoDB package. This is used to create a unique identification number for each document, similar to that of a primary key in the relational model.
The snippet to the right shows an example of a model struture, the journeys in this case. It is in Object format and contains user defined keys with their respective value data types. We export it at the end of the file, so that we can import it into the script with a require statement.