Skip to main content

So, I’ve been attempting to build a better dashboard so that I can view multiple stats and progress across multiple projects, however the API complexity limits and overall usability have just stopped me in my tracks. I can’t even do this query without it being 2.5x the complexity limit:


  const query = `
query fetchBoards($boardIds: dID!]!) {
complexity {
before
query
after
reset_in_x_seconds
}
boards(ids: $boardIds) {
id
name
groups {
id
title
items_page(limit: 100) {
items {
column_values(ids: d"status"]) {
text
}
}
}
}
}
}
`;

Either I’m missing something or is the API just completely unusable?

Hey @kevin.robertson,


Bill here from monday.com - Welcome to the community! 👋


Complexity limits increase exponentially if queries are nested. The reason why your complexity is so high is because you’ve nested the items_page query within the groups query.


If you remove the nesting and send something like this, it should reduce the complexity.


const query = `
query fetchBoards($boardIds: :ID!]!) {
complexity {
before
query
after
reset_in_x_seconds
}
boards(ids: $boardIds) {
id
name
groups {
id
title
}
items_page(limit: 100) {
items {
column_values(ids: :"status"]) {
text
}
}
}
}
}
`;

Let me know if that works for you.


Cheers,

Bill


Reply