I am trying to filter a MongoDB collection with a structure similar to:
{
   Name: "My Item",
   Attributes: [{
        AttributeId: 1,
        Values: [{
               Name: "Book",
               P: 10
        },
        {
               Name: "Series",
               P: 100
        }] 
      },
      {   
        AttributeId: 2,
        Values: [{
              Name: "Pen",
              P: 10
        },
        {
              Name: "Dozen",
              P: 100
        }]
  }]
}
What I want is to get all documents with AttributeId: 1 and has a value inside it named "Book".
I have tried this filter but it didn't return any results:
{"ProductAttributeMappings.ProductAttributeId": 32,"ProductAttributeMappings.$.ProductAttributeValues.Name":"Book"}