This message was deleted.
# announcements
w
This message was deleted.
c
Copy code
{
  "$or": [
    {
      "country": {
        "$ne": "Y"
      }
    },
    {
      "country": {
        "$ne": "X"
      }
    },
    {
      "product": {
        "$ne": "Z"
      }
    }
  ]
}
Copy code
{
  "$or": [
    {
      "product": {
        "$ne": "Z"
      }
    },
    {
      "country": {
        "$nin": [
          "Y",
          "X"
        ]
      }
    }
  ]
}
I tried these but seems to not working.
s
Hi Afsaneh, let me take a look
🙏 1
@colossal-alligator-31194 If you're using advanced mode with the mongodb query syntax, they should be working as expected ('OR')
I wonder if the issue has to do with something else. How are you testing? Can you confirm the user attributes are being set correctly?
c
Hey, thanks for writing to me. the issue was with the negations. I fixed it like this:
Copy code
{
  "$nor": [
    {
      "country": {
        "$in": [
          "X",
          "Y"
        ]
      }
    },
    {
      "product": "Z"
    }
  ]
}
148 Views