title: Node.js application not rendering mongoDB collection after model.find()
body: <p>I'm experiencing an issue in my node application with accessing the contents of a mongoDB collection via mongoose.</p>
  
  <p>this problem only ever happens the very first time my application makes a call to the database collection. what should occur when the user presses the submit button, is that the contents of the collection should be added dynamically to the DOM. However, this does not occur. but when I check the collection via the command line interface, the user submitted data is there, and then when I press the refresh button on the browser (which hits the same route the user was redirected to upon initially submitting the form) the data renders to the page like it should have the first time.</p>
  
  <p>When I noticed this, i tried starting from scratch. I dropped my database, restarted my server, but this time, I used robo3t to create the db and the collection before I started my app and filled out the form data, and viola, when I submit my data and hit save, the information gets saved to the collection AND rendered the the page successfully the first time.</p>
  
  <p>So i went and looked at the different Model methods provided by mongoose and thought maybe I just needed to add a function call to initialize the collection sometime before calling Model.find() but everything i'm looking at tells me that the collection is already (obviously) initialized when you call mongoose.model()</p>
  
  <p>so i'm a little confused about what to do in order to make sure my data gets rendered to the webpage the first time the user submits information, rather than after refreshing.....i've been careful about awaiting all the async functionality but maybe I missed something?</p>
  
  <p>the repo is here in the unlikely case someone wants to clone this and try to recreate the situation. Let me know if there is more information I can provide</p>
  
  <p><a href="https://github.com/Funkh0user/TripCheq-Travel-Assistant" rel="nofollow noreferrer">https://github.com/Funkh0user/TripCheq-Travel-Assistant</a></p>
  
  <p>Thank you.</p>