Case insensitive custom filter operation #3915
Replies: 6 comments 26 replies
-
|
i got error "message: "'_s0.Name.IndexOf("test", InvariantCultureIgnoreCase)' cannot be converted to SQL."" |
Beta Was this translation helpful? Give feedback.
-
|
@naufilshaikh09 This works for me, but not for the inner collections. For example, my class is And I need to apply case-insensitive filter on the Note: My HotChocolate version is V11. Regards, |
Beta Was this translation helpful? Give feedback.
-
|
@europanda This is not what I seek. This is the query to filter the parent |
Beta Was this translation helpful? Give feedback.
-
|
@europanda My friend has found out another solution. Thanks for sparing some of your time for me. |
Beta Was this translation helpful? Give feedback.
-
This doesn't seem to work if there are null values in the database. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
|
I love this project, however, using HotChocolate.AspNetCore version 16.0.2, the documentation located here (https://chillicream.com/docs/hotchocolate/v16/fetching-data/integrations/extending-filtering/) does not compile. I have changed the code to be like below, but it just doesn't work. Help. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hey, if you want to add case insensitive custom filter operation in hotchocolate then you can find solution below.
For ex :
Solution :
Add filter convention in Startup,cs
you can also refer this link too : C# Dynamic lambda problem with implementing "IndexOf" ignore case
Beta Was this translation helpful? Give feedback.
All reactions