Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- somePromise
- .then(anySchema.findOne({}).exec)
- .then(function(d){
- //d is undefined
- })
- somePromise
- .then(function () {
- return anySchema.findOne({}).exec()
- })
- .then(function(d){
- //d is null
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement