Support querying with numeric arrays (like $in)
I want to be able to query for multiple numbers in the same query without having to specify separate “range” clauses (or “equals” when they are supported with numbers).
ie. I want to be able to query for [1, 2, 3] and any document which matches 1, 2, or 3 gets returned.
5
votes
AdminAmy
(Admin, MongoDB)
shared this idea
Included in our May 26th release, see docs and changelog here
-
Prasad Kini commented
This is great news!
Are there any plans to add support for strings as well?
-
Prasad Kini commented
Hi Amy,
You can do this using the compound operator with the should clause in current state, until Atlas Search provides a better way to do this.Prasad