Hello guys,
I have been looking at this for few hours, no results what so ever.
Let’s say I have documents (around 20000 or so) with the following structure
{
"id": 1,
"name": "channel",
"participants": [
{"profile": {"id": 1, "name": "John"}, "status": {"id": 1, "name": "active"}},
{"profile": {"id": 2, "name": "Kate"}, "status": {"id": 2, "name": "inactive"}},
{"profile": {"id": 3, "name": "Alex"}, "status": {"id": 1, "name": "active"}},
{"profile": {"id": 4, "name": "Glea"}, "status": {"id": 1, "name": "active"}},
]
}
I want to fetch only those documents where one of the participants profile.id = 1 or 2 or something that I pass
How can I do so?