Graphql "contains" does not perform case-insensitive regex. Having problems creating a custom handler using MongoDbStringOperationHandler. #7963
Unanswered
matheusscsantos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone. I'm currently working on implementing case-insensitive filtering.
Context:
I have the following query .Searching for apple returns just titles that contains apple, but I would like it to be case insensitive(APPLE,Apple,...) :
My service performs an aggregation like this:
Current Implementation:
I followed this https://chillicream.com/docs/hotchocolate/v14/api-reference/extending-filtering and created a similar filter handler:
Problem:
The documentation mentions adding a convention for IQueryable like the one below, but since I'm returning an IExecutable, I'm unsure how to set up the convention properly for MongoDB filtering. It feels like a provider extension is missing for that.
Could you guys share some tips on how I can create a convention for IExecutable or how I can do a query with case-insensitive contains?
Beta Was this translation helpful? Give feedback.
All reactions