You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
This PR add multiple sort support on blueprints
Basic usage of `?sort=foo ASC` still working
and add JSON support like `?sort={foo: 'ASC', bar: 'DESC'}` (basically same parameter than Waterline)
As refered balderdashy#2449
Hi!
Actualiy, blueprints doesn't parse
sort
argument as json or by splitting string,so we can't do something like:
/model/?sort=foo ASC, bar DESC
/model/?sort=[ 'foo ASC', 'bar DESC']
/model/?sort={ 'foo': 'ASC', 'bar': 'DESC'}
/model/?sort={ 'foo': 1, 'bar': 0}
His there any purpose to do it well?
Maybe a PR soon.
The text was updated successfully, but these errors were encountered: