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
Hello,
I use adonisJS 6, I installed the library to manage my filters which is very practical. Thanks for that.
However, I've noticed that using a filter on my model changes the sort in which I receive my data.
I have several questions: is it normal for the sorting to change? Have I made a configuration error?
And can I apply a default sorting filter to all the models and then put an orderBy on each of the queries?
Currently, I've created a filter that adds a like on a text field, very simple and I've added the import of this filter in my model to use the .filter in my controller.
Sorry if there's any documentation on this, I haven't found any information on this.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
For example.. If I return a list of users.. By default I only want to return "active" users, and allow the user to selected "disabled" if they need to view those records.
Hello,
I use adonisJS 6, I installed the library to manage my filters which is very practical. Thanks for that.
However, I've noticed that using a filter on my model changes the sort in which I receive my data.
I have several questions: is it normal for the sorting to change? Have I made a configuration error?
And can I apply a default sorting filter to all the models and then put an orderBy on each of the queries?
Currently, I've created a filter that adds a like on a text field, very simple and I've added the import of this filter in my model to use the .filter in my controller.
Sorry if there's any documentation on this, I haven't found any information on this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: