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 95f8fc27
authored
Sep 30, 2015
by
Jan Aagaard Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] docs(order) Clarify how to pass raw strings to order. Closes #4529
1 parent
6dc255e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
docs/docs/querying.md
docs/docs/querying.md
View file @
95f8fc2
...
...
@@ -186,10 +186,10 @@ something.findOne({
// Will order by otherfunction(`col1`, 12, 'lalala') DESC
[
sequelize
.
fn
(
'otherfunction'
,
sequelize
.
col
(
'col1'
),
12
,
'lalala'
),
'DESC'
],
// Both the following statements will be treated literally so should be treated with care
'name'
,
'username DESC'
]
// All the following statements will be treated literally so should be treated with care
order
:
'convert(user_name using gbk)'
order
:
'username DESC'
order
:
sequelize
.
literal
(
'convert(user_name using gbk)'
)
})
```
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