While targeting by attributes (in Feature Flag) in...
# ask-questions
a
While targeting by attributes (in Feature Flag) instead of
Copy code
{
  "school_ids": {
    "$elemMatch": {
      "$eq": "someIdToMatch"
    }
  }
}
Can I write
Copy code
{
  "school_ids": {
    "$in": [
      "someIdToMatch",
      "AnotherID",
      "YetAnotherID"
    ]
  }
}
??
h
That notation looks correct to me
a
Cool. Thanks
m
I did something like this and it automatically converted it to $in query:
"language_ids": {"$in": [1, 8, 3, 9, 13]
I think both will work
a
Yeah it works.