adminjs-prisma icon indicating copy to clipboard operation
adminjs-prisma copied to clipboard

Case insensitive in Filter query

Open cesconix opened this issue 2 years ago • 2 comments

Hi everyone!

The default prisma behavior without mode param is mode: sensitive, but I think the filter query should be case insensitive, like #5, to make the searching experience easier.

Why it has been removed? I think the ideal would be to make it configurable.

cesconix avatar Nov 25 '22 17:11 cesconix

@dziraf Hi, I found that you rollback this https://github.com/SoftwareBrothers/adminjs-prisma/commit/8d749a1493544cef59822eecca3fda00893f0034. Is there any possibilities that this functionality would be again available in future version?

VladyslavP98 avatar May 17 '23 13:05 VladyslavP98

@VladyslavParashchenko this would probably require some runtime checks for database driver to make sure it supports mode: 'insensitive'. Ideally Prisma would just ignore this param if it's not supported instead of throwing error though.

dziraf avatar May 17 '23 13:05 dziraf