I have an aggregation pipeline setup but I’m having trouble with this one part. Here is what I’m trying to do:
- targetGender is an array of genders
- I want to check if this array contains either the uppercase version or the lowercase version of my local gender variable
- I want to return documents that have either value in it
This is what I currently have which doesnt work. I’ve tried it multiple ways and none of them have worked so please let me know how I can accomplish this!