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

Commit f3bec832 by Mick Hansen

docs(querying): spacing

1 parent bac03479
Showing with 3 additions and 1 deletions
## Where ## Where
Whether you are querying with findAll/find or doing bulk updates/destroys you can pass a `where` object to filter the query. Whether you are querying with findAll/find or doing bulk updates/destroys you can pass a `where` object to filter the query.
`where` generally takes an object from attribute:value pairs, where value can be primitives for equality matches or keyed objects for other operators. `where` generally takes an object from attribute:value pairs, where value can be primitives for equality matches or keyed objects for other operators.
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
...@@ -151,7 +153,7 @@ Project.findAll({ offset: 5, limit: 5 }) ...@@ -151,7 +153,7 @@ Project.findAll({ offset: 5, limit: 5 })
## Ordering ## Ordering
`order` takes an array of items to order the query by. `order` takes an array of items to order the query by. Generally you will want to use a tuple/array of either attribute, direction or just direction to ensure proper escaping.
```js ```js
something.find({ something.find({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!