404 when connecting to Mongo collection


I 've installed monggodb and already connected through the terminal , but when I connected through nodejs express and mongojs I get into trouble.


and i get in the console “GET https:///contactlist 404 NOT FOUND )”

I think i’am not connected with mongodb

any sugestions …

Setting Up MongoDB

Looks like you already attached contactlist to your collection so on line 22 you can remove the db. and then be good. Try changing line 22 as follows and see if it works:

contactlist.find(function(err, docs){

Also would be good to know if it’s hitting your console.log on line 20.


Thank you sir for you response, now myprogram running well …