Docs add docs for additional order option
This commit is contained in:
parent
1daa68e03e
commit
6a2290f064
@ -158,6 +158,7 @@ Team.findAll({order: ['name']})
|
|||||||
```js
|
```js
|
||||||
// returns the teams ordered by the name column, descending
|
// returns the teams ordered by the name column, descending
|
||||||
// GET /teams?order[0]=name&order[0]=DESC
|
// GET /teams?order[0]=name&order[0]=DESC
|
||||||
|
// GET /teams?order=name%20DESC
|
||||||
|
|
||||||
// results in a Sequelize query:
|
// results in a Sequelize query:
|
||||||
Team.findAll({order: [['name', 'DESC']]})
|
Team.findAll({order: [['name', 'DESC']]})
|
||||||
|
Loading…
Reference in New Issue
Block a user