Skip to content

Instantly share code, notes, and snippets.

@thihenos
Created October 10, 2018 19:43
Show Gist options
  • Save thihenos/6e3352725b19a932e2d677b7912348c4 to your computer and use it in GitHub Desktop.
Save thihenos/6e3352725b19a932e2d677b7912348c4 to your computer and use it in GitHub Desktop.
let filter = db.datastore.key(['material', db.datastore.int(req.param('id'))]);
//Deletando documento
db.datastore.delete(filter, function(err, apiResp){
console.log('Document deleted');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment