I have a table that looks like this:
{"_key": "1", "name": "George Washington", "cars": ["Ford Focus"]}
{"_key": "2", "name": "John Adams", "cars": ["Pontiac Firebird", "Toyota Corolla"]}
{"_key": "3", "name": "Thomas Jefferson", "cars": ["Toyota Corolla"]}
{"_key": "4", "name": "James Madison", "cars": ["Ford Mustang", "Porsche 911"]}
Now I would like to find the names of all persons who have a Ford (i.e., ["George Washington", "James Madison"]). Of course
FOR doc IN documents
FILTER ("Ford Focus" IN doc.cars OR "Ford Mustang" IN doc.cars)
RETURN doc.name
works, but suppose I do not know what types of Fords exist. How can I search for a part of a string in an array?