adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

[Feature]: Filter case-insensitive

Open lpbonomi opened this issue 2 years ago • 2 comments

Description

I would like to be able to find records regardless of the letter case. For example, if a record has its name "Test" I would like to find it by searching "test".

Suggested Solution

Make the filtering case-insensitive

Alternatives

No response

Additional Context

No response

lpbonomi avatar Sep 13 '23 20:09 lpbonomi

This is something that has to be done on each adapter's level. Currently only @adminjs/sql supports case-insensitive search. This is problematic because not all databases support ILIKE which adds an additional requirement to check for your DB dialect which is something we'd rather not do.

dziraf avatar Sep 14 '23 11:09 dziraf

Ok! Thanks for the fast reply!

lpbonomi avatar Sep 14 '23 11:09 lpbonomi