I am using the following query to get all column values for a board:
let jobsQuery = { boards (ids: ${cfg.jobBoardId}) { items { id name column_values { id title value } } } }
;
It’s running in NodeJS. It’s working great, returning all the items.
I’d like to narrow the search to only return items that have a particular column set to a particular value.
Based on the current dataset returned, it’s the data in ‘name’ that should be used to narrow the search.
I tried the following:
let jobsQuery = { boards (ids: ${cfg.jobBoardId}) { items (names: ${cfg.jobName}) { id name column_values { id title value } } } }
;
But that didn’t work, it just returns an empty list.
What would I need to update my query to, so as to return the same data structure and columns, but only the subset that match name === cfg.jobName?