We are trying to retrieve items and subitems with hierarchy and it is failing with query complexity issue.
The query is as below:
{
boards(ids: xxxx) {
id
name
groups(ids: xxxx) {
id
title
items(ids: xxxx) {
id
name
subitems(ids: xxxx) {
id
name
}
}
}
}
}
Getting below error:
{
“errors”: [
{
“message”: “Query has complexity of 2001200120022, which exceeds max complexity of 5000000”
}
],
“account_id”: 11771408
}
Currently the instance is having sample data with less than 100 items including all the workspaces.
How we can avoid the issue with query complexity to retrieve the same data as above.
Regards,
Prashanth