Created
May 18, 2016 13:07
-
-
Save andrewjmead/a12fd02a90927d5fb4b05e2daa2d2390 to your computer and use it in GitHub Desktop.
Sarvesh promise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User.find({}).then(function (users) { | |
// Do something with the users data | |
}, function (err) { | |
// Do something with the error | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment