首先抱歉我的英语不好!
假设此文档如下所示:
{
"id": "598969845c274c145a935994",
"contract_ref": "ABCDEF1234",
"currency": "USD",
"per_unit_cost": [
{
"size": 22,
"price": 1000
},
{
"size": 42,
"price": 1500
}
]
},
{
"id": "598969845c274c145a93599b",
"contract_ref": "ABCDEF1234",
"currency": "USD",
"per_unit_cost": [
{
"size": 22,
"price": 1234
}
]
}
你如何找到与'$ all'完全匹配的'per_unit_cost.size'[22],即检索第二个文件并忽略第一个文件?