I'm trying to do something like:
filter.or = [
{ name: { contains: q } },
{ "location.city": { contains: q } }
];
However it seems that "location.city", trying the MongoDB query language, is not working.
How can I achieve this?
Thanks!
I'm trying to do something like:
filter.or = [
{ name: { contains: q } },
{ "location.city": { contains: q } }
];
However it seems that "location.city", trying the MongoDB query language, is not working.
How can I achieve this?
Thanks!