Case insensitive custom filter operation #3915
Replies: 5 comments 24 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.
-
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