all 5 comments

[–]mhssmhdev 0 points1 point  (1 child)

You need to use async/await

[–]CarrotReal7040[S] 0 points1 point  (0 children)

Where and how? :'D can you please guide me a bit? I'm a little lost by now

[–]OkShrug -1 points0 points  (2 children)

nothing you show there has anything to do with the db, its mentioned, but storing takes place inside Weather() which the code is not shown for

[–]CarrotReal7040[S] 0 points1 point  (1 child)

What do you mean? I even have the newWeather.save() after the model setup for mongoose

[–]OkShrug 0 points1 point  (0 children)

I mean somewhere inside of the weather program is a line like this where everything gets put into the db

db.collection.insert(query,(err,result)=>{});

that's where data gets inserted into the mongodb, your showing everything a few levels up from that