I want to add a where filter in strongloop / loopback which compares two different arrays.
I have the following model:
"properties": {
...
"audience": {
"type": [
"string"
],
...
}
I want to create a where clause which returns all items where at least one element from 'audience' matches at least one element of another array.
Examples with "audience": ["A", "B", "C"]
The filter {where: { audience: { inq: anotherArray}}};
does not seem to do the trick...
This doesn't work if the string values are ids. See comment of Ebrahim Pasbani above.