I have an index for songs and each song have a collection of customers. If I filter songs that contains a specific customer works great, but I get in the result all the customers for the song. I would need to get the song with only the customer I'm filtering in the collection.
My index is something like:
{
SongId: 1,
Title: "My song",
Artist: "Artist",
Customers: [
{
CustomerId: 1,
...more customer data
}
{
CustomerId: 2,
...more customer data
}
]
}
I need to get the song filtering by title and only get the customer's 1 data or no customer if the customer 1 is not in the collection for that song. Is that possible?