Prisma-client-js: Add case sensitive/insensitive querying

Created on 27 Jul 2019  路  9Comments  路  Source: prisma/prisma-client-js

This is a huge missing feature, as you can see from here (https://github.com/prisma/prisma1/issues/3611) this is really really wanted. all the workarounds we have found will drastically increase the complexity and amount of code necessary to support it.

By now, the best workaround that I have found, ONLY WORKS on prisma2, and is described here (https://www.logisticinfotech.com/blog/postgresql-case-insensitive-citext/) but fails with prisma1x like so (https://github.com/prisma/prisma/issues/4127)

People have been doing all kind of ugly and scary stuff to deal with it. Please add support to it.

kinfeature

Most helpful comment

Now that Q1 launch has taken place, any update?

All 9 comments

Really need this 馃憤

internal note: we'll spec this out this coming week

Big feature for me. Having to do awkward things to get around this limitation right now - being storing values in all lowercase in a separate field to achieve this.

I recently opened an issue for this not realizing there was already one open. Going to everyone else's sentiments, this would be really great to have. Like @ctrlplusb stated, the current workaround I am using involves duplicating each case-sensitive field and creating a lowercased version to sort by. It's not the most critical feature for me鈥擨'd rather have aggregation first :) but it's unnecessary DB bloat.

Internal Note: Dropping from current sprint, and picking up later.

I noticed this was dropped from a sprint last month and wanted to express that this would be really great to have. Right now the workarounds are quite messy.

Hey @tylerjbainbridge 馃憢 thanks a lot for bumping this! Unfortunately this functionality currently has a bit lower priority and it's currently not planned to included in the initial Q1 launch of Prisma Client, however we're planning to tackle it very soon after!

Now that Q1 launch has taken place, any update?

Hello, I've created https://github.com/prisma/prisma-client-js/issues/690 to keep track of the feature request to support case sensitivity in filtering and sorting.

Please feel free to subscribe to that issue for updates.

Was this page helpful?
0 / 5 - 0 ratings