adminjs-prisma
adminjs-prisma copied to clipboard
Case insensitive in Filter query
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.
@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?
@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.