Fix where param format
This commit is contained in:
parent
3ef7dedfa4
commit
8a1fe0b744
|
@ -168,7 +168,7 @@ PersistedModel.findById = function find(id, cb) {
|
||||||
* <br/>See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter).
|
* <br/>See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter).
|
||||||
* @property {Object} where Where clause, like
|
* @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).
|
* <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).
|
* <br/>See [Skip filter](http://docs.strongloop.com/display/LB/Skip+filter).
|
||||||
* @property {Object} where Where clause, like
|
* @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).
|
* <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:
|
* @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).
|
* <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
|
* @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).
|
* <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.
|
* @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.
|
* 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).
|
* <br/>See [Where filter](http://docs.strongloop.com/display/LB/Where+filter).
|
||||||
* @callback {Function} callback Callback function called with `(err, count)` arguments. Required.
|
* @callback {Function} callback Callback function called with `(err, count)` arguments. Required.
|
||||||
|
|
Loading…
Reference in New Issue