Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit f3bec832
authored
Apr 23, 2015
by
Mick Hansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(querying): spacing
1 parent
bac03479
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
docs/docs/querying.md
docs/docs/querying.md
View file @
f3bec83
## 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
({
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment