I have a collection of cars where one of the fields is an array, let's say something like :
"designers": [
"John Smith",
"Jane Smith",
]
and I have an array of designers, let's say something like :
"topDesigners": [
"Brad Johnson",
"Kevin Williams",
"John Smith"
]
and I want to count how many first are within designers.
For example:
"designers": [
"Kevin Williams",
"Jane Smith",
]
desire result: count = 1
"designers": [
"Jane Smith",
"John Smith"
]
desire result: count = 1
"designers": [
"Kevin Huntzberger",
"Brad Johnson",
"John Smith"
]
desire result: count = 2