sequelize-orderby-parser

1.0.1 • Public • Published

Usage/Examples

use "-" prefix for DESC order.

const sequelizeParser = require("sequelize-order-parser");
sequelizeParser("-created_at,amount,-rate")

output

[ [ 'created_at', 'DESC' ],[ 'amount', 'ASC' ],[ 'rate', 'DESC' ] ]

Package Sidebar

Install

npm i sequelize-orderby-parser

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.13 kB

Total Files

3

Last publish

Collaborators

  • sahafreza