Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

client.connect is not a function node js mongodb

//Just add this line of code and client.connect and 
//-other dot functions will work

var mongo = require('mongodb').MongoClient;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #node #js #mongodb
ADD COMMENT
Topic
Name
4+1 =