I can't get Cosmos DB to find a record more than 1 level deep in a query:
Document:
{
"CustomerId": 1,
"Orders": [
{
"OrderId": 1,
"OrderCode": "ONE",
"OrderName": "Order One",
"Products": [
{
"ProductCode": "ONE",
"ProductName": "Product One"
}
]
}
]
}
Query: db.customers.find({ "Orders.Products.ProductCode": "ONE" })
It works in MongoDB shell, but not in CosmosDB. Am I missing something obvious?