Hi Monday.com team!
I’m wondering if you are working on allowing limits on subitems in a nested query. I’d like to retrieve all the vital information needed for additional queries from just the main board’s ID, but since “subitems { }” retrieves all subitems I run into complexity issues. Here is my query:
let query = "query {boards (ids: " + boardID + “) {id name subscribers {id name} groups {id title} items_count items (limit: 1) {subitems {board {id name}}}}}”
I could retrieve the “subtasks” column and use a subitem ID there to query what’s needed, but since I need to limit the items for complexity issues, I can’t have any guarantee that any number of items I query will have subitems… or that the board will have any subitems at all even if the subitem column structure has been set up, so that’s not really a great option.
Is there another way to get the subitem board id from the main board? …or are you working on allowing nested query subitem arguments? …the best workaround I can think of (when there are no subitems) is to use a query to create a subitem, then another query to use that id to query the subitem board id, then another query to delete the created subitem, which I can do but it may confuse board users.
Thanks