Hi all
I am execute a query with populate and filter, where Нolding id=1.
How to exclude Region2 ? In it, Holdings is not included in the filter results.
http://localhost:1337/api/regions?populate[0]=holdings&populate[holdings][filters][id][$eq]=1
{
"data": [
{
"id": 1,
"attributes": {
"name": "Region1",
"createdAt": "2022-03-23T03:37:10.648Z",
"updatedAt": "2022-03-23T03:37:16.333Z",
"holdings": {
"data": [
{
"id": 1,
"attributes": {
"name": "Holding1",
"createdAt": "2022-03-23T03:36:39.995Z",
"updatedAt": "2022-03-23T03:45:24.618Z"
}
}
]
}
}
},
{
"id": 2,
"attributes": {
"name": "Region2",
"createdAt": "2022-03-23T06:12:41.862Z",
"updatedAt": "2022-03-23T06:12:48.861Z",
"holdings": {
"data": []
}
}
},
{
"id": 3,
"attributes": {
"name": "Region3",
"createdAt": "2022-03-25T03:38:38.340Z",
"updatedAt": "2022-03-25T03:39:08.389Z",
"holdings": {
"data": [
{
"id": 1,
"attributes": {
"name": "Holding3",
"createdAt": "2022-03-23T03:36:39.995Z",
"updatedAt": "2022-03-23T03:45:24.618Z"
}
}
]
}
}
}
],
"meta": {
"pagination": {
"page": 1,
"pageSize": 25,
"pageCount": 1,
"total": 3
}
}
}