Fix where param format

This commit is contained in:
Rand McKinney 2015-04-01 11:29:35 -07:00
parent 3ef7dedfa4
commit 8a1fe0b744
1 changed files with 6 additions and 6 deletions

View File

@ -168,7 +168,7 @@ PersistedModel.findById = function find(id, cb) {
* <br/>See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter).
* @property {Object} where Where clause, like
* ```
* { key: val, key2: {gt: 'val2'}, ...}
* { where: { key: val, key2: {gt: 'val2'}, ...} }
* ```
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
*
@ -197,7 +197,7 @@ PersistedModel.find = function find(params, cb) {
* <br/>See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter).
* @property {Object} where Where clause, like
* ```
* { key: val, key2: {gt: 'val2'}, ...}
* {where: { key: val, key2: {gt: 'val2'}, ...} }
* ```
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
*
@ -215,7 +215,7 @@ PersistedModel.findOne = function findOne(params, cb) {
*
* @param {Object} [where] Optional where filter, like:
* ```
* { key: val, key2: {gt: 'val2'}, ...}
* {where: { key: val, key2: {gt: 'val2'}, ...} }
* ```
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
*
@ -252,7 +252,7 @@ PersistedModel.deleteAll = PersistedModel.destroyAll;
*
* @param {Object} [where] Optional `where` filter, like
* ```
* { key: val, key2: {gt: 'val2'}, ...}
* {where: { key: val, key2: {gt: 'val2'}, ...}}
* ```
* <br/>see [Where filter](http://docs.strongloop.com/display/public/LB/Where+filter).
* @param {Object} data Object containing data to replace matching instances, if any.
@ -294,9 +294,9 @@ PersistedModel.deleteById = PersistedModel.destroyById;
/**
* Return the number of records that match the optional "where" filter.
* @parame {Object} [where] Optional where filter, like
* @param {Object} [where] Optional where filter, like
* ```
* { key: val, key2: {gt: 'val2'}, ...}
* {where: { key: val, key2: {gt: 'val2'}, ...} }
* ```
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
* @callback {Function} callback Callback function called with `(err, count)` arguments. Required.