How to insert record into Mongodb
Continuing from our last tutorial, in this tutorial we will insert a record into our firstdb database into our highlowtemp collection whose data looks like this …
In app.js, we create a document of similar structure of a “New State” with some fake temperatures to be inserted…
And the output looks like this …
And if you check MongoLab, you would see new record in place.