hello, I’m working on rolling out a feature. Init...
# ask-questions
g
hello, I’m working on rolling out a feature. Initially I want the feature to be visible to Saved Group A and then over time I want to roll out to anyone who is either in Saved Group A or Saved Group B. Another separate feature might be targeting on Saved Group A, so I don’t want to simply update that group’s membership to change the targeting. Is this possible with the advanced syntax?
Current targeting condition looks like this:
Copy code
{
  "id": {
    "$inGroup": "grp_foo"
  }
}
thank you in advance!
f
yes
you can us the mongodb OR syntax
g
ahh thank you. I’ll try something like:
Copy code
{
  "id": {
    "$or": [
      {
        "$inGroup": "grp_foo"
      },
      {
        "$inGroup": "grp_bar"
      }
    ]
  }
}
👍 1