question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Todo app isnt' saving to Mongo's DB

See original GitHub issue

I’ve been doing ~7hours of non-stop Googling and research about why my Todo app isn’t replicating what is visible in the Wikis.

I generate as follows:

What is the name of your app? tapman
What is your username? TheBrenny
What is your email (used in your package.json)? thebrenny@brennytizer.com.au
Which stack do you want? fullstack
Which Git repository hosting service are you using? github
Which framework do you want to use in the client side? vue2
Which CSS pre-processor do you want to use? sass
What language do you want in the server side? node
Which framework do you want to use in server side? express
Which transpiler do you want to use in server side? node
Is it going to be a secure app (HTTP/2)? No
Do you want to keep tests in a different folder? Yes
Do you want to use a different static server? Such as NGINX, Apache, IIS, etc? No

I’ve generated using Angular as well, and have come to the conclusion that it’s an issue with Vue. For some reason, adding an item doesn’t update the database, and hence deleting an item won’t throw an error because it’s not reaching the database. I’m going to look through the code side-by-side to try and find any discrepancies, but I feel that lodging an issue would speed up the process of fixing it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ericmdantascommented, May 10, 2017

Haha, awesome catch, @TheBrenny.

Thanks for all the info!

0reactions
TheBrennycommented, May 10, 2017

Found the issue. Vue 2 no longer has the ready function. It’s been replaced by mounted. That’s why I was never receiving the latest posts. (See this SO answer for future reference)

Wowee. What an adventure!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactJS + Redux: Why isn't MongoDB saving data to the ...
I am making API calls from action creators in redux, and reach the API server and get a successful status back, yet the...
Read more >
Persisting a Todo List With MongoDB and Geddy - Code
Much simpler than the save method, don't you think? We use the db.todos.find() method to get all the items in the todos collection....
Read more >
Save data to MongoDB with Mongoose - YouTube
In this vide, I am going to show you exactly how to save data to your MongoDB database with Mongoose in a Nodejs...
Read more >
Mistakes You're Probably Making With MongooseJS, And ...
MongoDB uses named collections of arbitrary objects, and a Mongoose JS Model abstracts away this layer. Because of this, we don't have to...
Read more >
Saving Data to MongoDB Database from Node.js Application ...
We are going to allow users to enter a first name and a last name that we will be saving in the database....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found