我希望计算 JSON 流具有 status='active' 的成员。这将等于我们成员的总和。
我可以通过 选择所有成员@/name
,但我不能只过滤那些活跃的成员。
根据Klipfolios 文档,应该可以计算单个元素:
[
{
"_id": "58aabc92e846502357fc0f69",
"email": "mail@me.com",
"name": "John Doe",
"office": "1122",
"phone": "555-555",
"status": "active",
},
{
"_id": "58aabc92e846502357fc0f69",
"email": "mail@me.com",
"name": "John Doe",
"office": "1122",
"phone": "555-555",
"status": "active",
},
{
"_id": "58aabc92e846502357fc0f69",
"email": "mail@me.com",
"name": "John Doe",
"office": "1122",
"phone": "555-555",
},
{
"_id": "58aabc92e846502357fc0f69",
"email": "mail@me.com",
"name": "John Doe",
"office": "1122",
"phone": "555-555",
}
]