Hello, I have a query and I need to project certain fields, _id, CustomerId and then an element in an array. The CardType Element in the PaymentMethod array.
Sorry about that Steeve. So I was using
{_id: 1, CustomerID: 1, PaymentMethod.CardType: 1} and I shouldve been using
{_id: 1, CustomerID: 1, “PaymentMethod.CardType”: 1} was just missing quotes