Merge pull request #922 from Sequoia/patch-2

Document promise support for DAO::find
This commit is contained in:
Simon Ho 2016-05-11 16:10:48 -07:00
commit 3113333cb2
1 changed files with 2 additions and 1 deletions

View File

@ -1568,7 +1568,8 @@ DataAccessObject._coerce = function(where) {
* - `{foo: true}` - include only foo
* - `{bat: false}` - include all properties, exclude bat
*
* @param {Function} cb Required callback function. Call this function with two arguments: `err` (null or Error) and an array of instances.
* @param {Function} cb Optional callback function. Call this function with two arguments: `err` (null or Error) and an array of instances.
* @return {Promise} results If no callback function is provided, a promise (which resolves to an array of instances) is returned
*/
DataAccessObject.find = function find(query, options, cb) {