.toPromise()
Begin executing a Waterline query instance and return a promise.
.toPromise();
This is an alternative to .exec().
.exec()
For more information, see the bluebird Promise.promisify() API docs.
Promise.promisify()
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.
For a better experience on sailsjs.com, update your browser.
Check out the full Sailsconf 2024 playlist on Youtube