不要怂,就是干,撸起袖子干!

Commit 178726a2 by Mick Hansen

Merge pull request #4356 from kevinawoo/feature/docs-query-params

added query params to docs
2 parents 6202a409 f3995b66
......@@ -166,6 +166,8 @@ Project.findAll({ where: { id: [1,2,3] } }).then(function(projects) {
Project.findAll({
where: {
id: {
$and: {a: 5} // AND (a = 5)
$or: [{a: 5}, {a: 6}] // (a = 5 OR a = 6)
$gt: 6, // id > 6
$gte: 6, // id >= 6
$lt: 10, // id < 10
......@@ -182,6 +184,7 @@ Project.findAll({
$overlap: [1, 2] // && [1, 2] (PG array overlap operator)
$contains: [1, 2] // @> [1, 2] (PG array contains operator)
$contained: [1, 2] // <@ [1, 2] (PG array contained by operator)
$any: [2,3] // ANY ARRAY[2, 3]::INTEGER (PG only)
},
status: {
$not: false, // status NOT FALSE
......
......@@ -45,6 +45,8 @@ Post.update({
### Operators
```js
$and: {a: 5} // AND (a = 5)
$or: [{a: 5}, {a: 6}] // (a = 5 OR a = 6)
$gt: 6, // id > 6
$gte: 6, // id >= 6
$lt: 10, // id < 10
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!