Official comment
Hi Istvan,
Currently this is not supported in our API.
What you can do it to get tasks with their resources as a relation and then count the number of resources using your code.
The query should look like this:
"SELECT Name,(select Name FROM Resources) FROM Task"
And the response will look something like this:
{
"entities": [
{
"id": "/Task/981f223f-fe76-4dea-8852-cdab69a7258c",
"Name": "Task with no resources",
"Resources": null
},
{
"id": "/Task/5w7zux8fch4mfyvxdl9eyan3c0",
"Name": "Task with 1 resources",
"Resources": {
"entities": [
{
"id": "/User/2qwgydsncnkqz7734kilbkxv52101",
"Name": "Aida"
}
],
"paging": {
"from": 1,
"limit": 30,
"hasMore": false
}
}
},
],
"paging": {
"from": 2,
"limit": 100,
"hasMore": false
}
}
I hope this helps,
Elad