Monday, 4 January 2021

find() in MongoDb

Subscriber.find() .then(user => { loadedUser = user; res.status(200).json({ users: loadedUser }); }) .catch(err => { if (!err.statusCode) { err.statusCode = 500; } next(err); });

No comments:

Post a Comment

IIS deployment support details

  Node JS - IIS deployment support details node: http://go.microsoft.com/?linkid=9784334 IISNode: https://github.com/azure/iisnode/releases/...