{
"_id": "99a7692c-9687-443d-8f18-f8a28fe9ffbb",
"version": "Version45eea229-0f5b-4977-bfa2-72bf6a9cca42",
"first": "First18457307-c556-4231-bfc7-a1cd0ba65325",
"last": "Laste92586b9-53bd-4cff-84d3-bdc6b33ec4ca",
"identity": {
"_id": "4ffa9027-6551-4c35-b8db-f60aa3bb91be@Dell.com",
"type": "Email"
},
"diProfileId": "DiProfileId763b1a03-aefc-44d5-aee1-18e41564df26",
"idp": "Idp5322c864-c39d-4bc6-9ae0-6bf0f3c79ab5",
"type": "User",
"links": [
{
"linkType": "App",
"linkPath": "0923689a-e009-4d67-8db5-5ba40f840bf3",
"status": "Invited",
"inviterId": "00000000-0000-0000-0000-000000000000",
"createdOn": "2022-06-07T12:09:58.421+00:00"
},
{
"linkType": "App",
"linkPath": "0923689a-e009-4d67-8db5-5ba40f840bf4",
"status": "Activated",
"inviterId": "00000000-0000-0000-0000-000000000000",
"createdOn": "2022-06-07T12:09:58.421+00:00"
}
]
}
I have above document and want to group by based on first link matched status and want to get count based on filter criteria across documents. Please help on this.