Skip to content

Instantly share code, notes, and snippets.

@zoranf zoranf/app.js
Created Apr 6, 2013

What would you like to do?
db.users.findOne({username:"someuser_not_found"}, function(err, doc) {
if (err) {
if (doc) {
console.log("Success" + doc.username);
} else {
console.log("Failed" + doc.username);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.