mongous icon indicating copy to clipboard operation
mongous copied to clipboard

update by ObjectID support ?

Open tablecell opened this issue 5 years ago • 1 comments

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 avatar Oct 02 '20 03:10 tablecell

@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!

amark avatar Oct 06 '20 05:10 amark