I am trying to use MongoDB with just javascript from client, but MongoDB's documentation on how to achieve this is very confusing.
On this webpage there is nothing to download, I was expecting to see something like mongo.js.
Here I did find mongo.js, and using this I am trying to make it work but with no luck.
The Javascript console in Google Chrome is saying:
Uncaught TypeError: Object [object Object] has no method 'init'
In this snippet from mongo.js:
if ( typeof Mongo == "undefined" ){
Mongo = function( host ){
this.init( host );
}
}
Does anyone have any tips on using MongoDB with pure Javascript?