我有一个DocumentRepository实例。我也有标准数组形式的查询,例如{
"orderContainers": [
{
"complexType":"SoftLayer_Container_Product_Order_Virtual_Guest",
"hostId": 204603,
"provisionScripts": [
"https://10.140.132.215:8443/bootstrap_base.sh"
],
"packageId": 46,
"prices": [
{ "id": 200327 },
{ "id": 23070 },
{ "id": 200399 },
{ "id": 200423 },
{ "id": 212490 },
{ "id": 200367 },
{ "id": 203855 },
{ "id": 34183 },
{ "id": 34807 },
{ "id": 80265 },
{ "id": 32500 },
{ "id": 32627},
{ "id": 33483 },
{ "id": 35310 }
],
"virtualGuests": [
{
"primaryBackendNetworkComponent": {
"networkVlan": { "id": 1374047 },
"networkVlanId": 1374047
},
"domain": "dddddd",
"hostname": "test",
"primaryNetworkComponent": {
"networkVlan": { "id": 1374043 },
"networkVlanId": 1374043
}
}
],
"sshKeys": [
{
"sshKeyIds": [
388713,
410311
]
}
],
"quantity": 1
}
]
}
。
我可以轻松['active' => TRUE]
。
但是我该如何仅将我拥有的东西计算为匹配的文档?