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!
This is actually written in swift hence the square brackets. And thank you for catching the $ in front of targetGender, I was moving around so much code I might’ve put it there accidentally. Upon removing the $, it seems to work!