Let's say, that in a document in field students
I have a field, subjects
,which is an array of strings that could be set up as follows:
subjects = ["Computer Science,"Mathematics","Additional Mathematics"]
And another array subjectsToCompare = ["Computer Science","Mathematics"]
How do I construct a query that returns all documents where the subjects field contains at least ALL the values in subjectsToCompare
? It may contain other values, but it MUST contain all the values in subjectsToCompare.
Tried using "array-contains" and "in" but none of them give the desired behaviour.