Skip to content

Instantly share code, notes, and snippets.

@deepal
Last active February 17, 2016 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepal/968ab74424c2d1243416 to your computer and use it in GitHub Desktop.
Save deepal/968ab74424c2d1243416 to your computer and use it in GitHub Desktop.
nodesec-mongodb-injection
DBSecretNotes.find({username: req.body.username, secret: req.body.secret}).exec(function(err, secretNotes){
//List all secret notes of the user
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment