```
User.findOne({}, function(err, doc){
   //do stuff with "doc" here.
});

```

That's the way I currently do it. But what if I want to take "doc", and just do stuff.

```
User.findOne({}, function(err, doc){
   //do stuff with "doc" here.
});
runAnotherFunction(doc.name)
doc...

```

How do I take "doc" out of the "function" part?