https://www.growthbook.io/ logo
p

plain-jordan-57405

03/22/2023, 2:27 PM
Hey, I ran into a problem when using the following condition:
Copy code
{
  "$or": [
    {
      "userId": {
        "$type": "undefined"
      }
    },
    {
      "userId": null
    }
  ]
}
If the userId was defined, it would throw an error because of the second part. I am not sure this is intended behaviour since this is a valid MongoDB query
If you are okay with it, I could open a PR to support it