Monday 15 February 2016

Help a noob with the node aspect of MEAN

I am following this guide * http://ift.tt/20WYAs7 everything works. However, when I add a "todo" the app crashes with:GET /api/todos/ 200 20.435 ms - 411 /home/me/sites/rhino/todo/node_modules/mongodb/lib/utils.js:98 process.nextTick(function() { throw err; }); TypeError: todos.find is not a function So to be clear, the app does indeed add a "todo" to the database but it crashes when it calls the todo.find function in core.js. Here is the code where it is failing. You can see in the pastebin code the line where todos.find is after the record is created.http://ift.tt/1Vi385e

Submitted February 16, 2016 at 12:08AM by TrulyExcellent

No comments:

Post a Comment