https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
g

gorgeous-guitar-5716

04/14/2023, 3:36 PM
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

fresh-football-47124

04/14/2023, 11:50 PM
yes
you can us the mongodb OR syntax
g

gorgeous-guitar-5716

04/15/2023, 12:26 AM
ahh thank you. I’ll try something like:
Copy code
{
  "id": {
    "$or": [
      {
        "$inGroup": "grp_foo"
      },
      {
        "$inGroup": "grp_bar"
      }
    ]
  }
}
👍 1
12 Views