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

Commit 28544d54 by Jan Aagaard Meier

Merge pull request #4051 from Verdier/patch-2

Update querying.md
2 parents 76ade8e0 0cdf8d9d
Showing with 2 additions and 2 deletions
...@@ -7,7 +7,7 @@ Whether you are querying with findAll/find or doing bulk updates/destroys you ca ...@@ -7,7 +7,7 @@ Whether you are querying with findAll/find or doing bulk updates/destroys you ca
It's also possible to generate complex AND/OR conditions by nesting sets of `$or` and `$and`. It's also possible to generate complex AND/OR conditions by nesting sets of `$or` and `$and`.
### Basics ### Basics
``` ```js
Post.findAll({ Post.findAll({
where: { where: {
authorId: 2 authorId: 2
...@@ -48,7 +48,7 @@ Post.update({ ...@@ -48,7 +48,7 @@ Post.update({
$gt: 6, // id > 6 $gt: 6, // id > 6
$gte: 6, // id >= 6 $gte: 6, // id >= 6
$lt: 10, // id < 10 $lt: 10, // id < 10
$lte: 10, // id $lte: 10, // id <= 10
$ne: 20, // id != 20 $ne: 20, // id != 20
$between: [6, 10], // BETWEEN 6 AND 10 $between: [6, 10], // BETWEEN 6 AND 10
$notBetween: [11, 15], // NOT BETWEEN 11 AND 15 $notBetween: [11, 15], // NOT BETWEEN 11 AND 15
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!