mongous
mongous copied to clipboard
update by ObjectID support ?
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!
@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!