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 b2f8ebe7
authored
Oct 23, 2018
by
Asutosh Palai
Committed by
Sushant
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(model-usage): order expression format (#10061)
1 parent
4886b866
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
docs/models-usage.md
docs/models-usage.md
View file @
b2f8ebe
...
...
@@ -275,7 +275,7 @@ Project.findAll({ offset: 10, limit: 2 })
The syntax for grouping and ordering are equal, so below it is only explained with a single example for group, and the rest for order. Everything you see below can also be done for group
```
js
Project
.
findAll
({
order
:
'title DESC'
})
Project
.
findAll
({
order
:
[[
'title'
,
'DESC'
]]
})
// yields ORDER BY title DESC
Project
.
findAll
({
group
:
'name'
})
...
...
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