amark / mongous

Simple MongoDB driver for Node.js with jQuery like syntax.
MIT License
246 stars 30 forks source link

update by ObjectID support ? #46

Open tablecell opened 4 years ago

tablecell commented 4 years ago
var $ = require("mongous").Mongous;

//var by={"_id" :$.ObjectID("5f732913000000f80c000002")};
var by={"_id" :"5f732913000000f80c000002"};

var record={"title" : "test", "url" : "www.google.com" };

$("db.tbl").update(by,record,function(err, updated){
 console.log("update result");
 console.log(err);
 console.log(updated);

})

no output only echo

connecting...
connected!
amark commented 4 years ago

@tablecell sorry I run/support/maintain a full Open Source database solution now https://github.com/amark/gun so I don't support this anymore - happy to accept pulls tho!