I have objId($oid)
of the document and I am trying to remove the document in Sails by using destroy function
User.destroy({id:objId}).exec(cb);
It is not working. I tried suggestion from
other post. But it does not work either.I tried using Mongo
ObjectId
function too but it does not work either.
Any suggestions.
I can use native function but prefer not to.