We are facing same issue with another query mentioned below:
Query:
{
boards(ids: [1234567890]) {
groups {
archived
color
deleted
id
items {
created_at
creator_id
email
id
name
updated_at
}
position
title
}
}
}
Error:
{
"errors": [
{
"message": "Query has complexity of 6016020, which exceeds max complexity of 5000000"
}
],
"account_id": xxxxxx
}
We tried few things and could see when we remove any two fields from query it works. In this case we removed creator_id and email , sharing working query below:
{
boards(ids: [1234567890]) {
groups {
archived
color
deleted
id
items {
created_at
id
name
updated_at
}
position
title
}
}
}
Could you please help us know what factors we should consider to know while developing the nested queries.
It would be great help if you can point us to any documentation which will help us understand queries formation better.
@Matias.Monday The query what we use is to return groups under board. So we provide board id and expect groups.
Now regarding the items inside groups, we fetch all the details of groups including complex details. We were trying to understand why it gave us error when we provided more than 4 fields in items.