Ivshti / linvodb3

Persistent database for Node.js/NW.js/Electron with MongoDB/Mongoose-like features and interface on top of LevelUp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

find method returns some cursor class rather the doc json

hotfusion opened this issue · comments

I am not sure why it's not working for me but i don't get any docs back from the find method rather a Cursor class which I am not sure what I have to do with it...

doc.find(query, function (err, docs) { 
     // docs returns as Cursor class rather a json object
     // docs.exec(function(err,res){ console.log(res) }); wont return json either
})

is it a bug or I am missing something?
Thx

Sorry, my mistake... I didn't read carefully the docs! However, this module works great!