http-reject-empty
A function to reject empty values with an http exception
Install
$ npm install --save http-reject-empty
Usage
const empty = ; const promise = User // find a user in the db ;
If the promise returns a falsy value, the promise is rejected with a 404 http error