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
I want to use paginate with search and order params query. But this repo not supported this. I was tried multiple sortBy like this.
My url /endpoint?limit=5&page=1&sortBy[]=stars:desc&sortBy[]=price:asc
The positions of the ranking parameters affect the results. whichever applies first.
@kvlknctk thanks for the suggestion. I have added the multiple criteria sorting feature to the paginate plugin. You can use it by specifying the sortBy field as, for instance, name:desc,role:asc
Hi,
I want to use paginate with search and order params query. But this repo not supported this. I was tried multiple sortBy like this.
My url
/endpoint?limit=5&page=1&sortBy[]=stars:desc&sortBy[]=price:asc
The positions of the ranking parameters affect the results. whichever applies first.
But I wonder is this best practice?
Just modified this area
Whole code
models/plugins.js
I took as an example : https://stackoverflow.com/a/13587343/4329812
Best regards.
The text was updated successfully, but these errors were encountered: