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

Commit 95f8fc27 by Jan Aagaard Meier

[ci skip] docs(order) Clarify how to pass raw strings to order. Closes #4529

1 parent 6dc255e4
Showing with 4 additions and 4 deletions
......@@ -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)')
})
```
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!